English 中文(简体)
深层连接Xamarin。 服不起
原标题:Deeplinking in Xamarin.Android app not working

in our app we are using deeplinks. They are working when the app is opened or runs in the background but not when the app is completely closed.

该信开了,但无论是新Intent还是OnAppLinkRequestreceived都不叫。

我试图将意图过滤器从主要活动制移至对抗性,但没有成功。

如何确定这一点?

问题回答

这里是建立Xamarin深层链接的步骤。 页: 1

首先,请在主力学中添加斜体。 这里是你提到的样本。

 [IntentFilter(new[] { Android.Content.Intent.ActionView },
    DataScheme = "https",
    DataHost = "example.com",
    DataPathPrefix ="/",
    Categories = new[] { Android.Content.Intent.CategoryDefault,Android.Content.Intent.CategoryBrowsable })]

此外,你不需要将目标过滤器安装在马尼费斯特,以帮助你建立清单中的组合。 然后,你可以建立html链接,测试深层连接。

The app opens but neither the OnNewIntent nor the OnAppLinkRequestReceived is called.

在这个问题上,你可以添加“<条码>罗安德:发射Mode=“singleTask”,以创造新的任务,并将把新的事例推到任务中,作为根本任务。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签