android-deep-link

Jetpack Navigation handling deeplinks manually in onNewIntent

蹲街弑〆低调 提交于 2021-01-24 08:15:19
问题 I'm using Jetpack Navigation. I need to handle deeplinks manually because: 1) Implicit deeplinks are not working properly with android:launchMode="singleTask" Deeplink isn't correctly redirect if the app is already opened 2) I'm passing in my bundles not only simple types but also Parcelables, so I won't have the possibility to pass arguments I've done proof of concept that is using explicit deeplinkins in onNewintent of my Activity override fun onNewIntent(intent: Intent?) { super

Jetpack Navigation handling deeplinks manually in onNewIntent

最后都变了- 提交于 2021-01-24 08:13:36
问题 I'm using Jetpack Navigation. I need to handle deeplinks manually because: 1) Implicit deeplinks are not working properly with android:launchMode="singleTask" Deeplink isn't correctly redirect if the app is already opened 2) I'm passing in my bundles not only simple types but also Parcelables, so I won't have the possibility to pass arguments I've done proof of concept that is using explicit deeplinkins in onNewintent of my Activity override fun onNewIntent(intent: Intent?) { super

Android Navigation Url Deep Link Back to Previous App

为君一笑 提交于 2020-11-25 03:42:48
问题 My app has just two destinations, FirstFragment and SecondFragment . I created an url Deep Link for the SecondFragment and it works fine. What I want is, after I enter the SecondFragment from the Deep Link, I want to go back to the previous app when I press the Back button. But now it always go back to the FirstFragment . I have set my MainActivity to singleTask on launchMode and tried the following but doesn't work: override fun onNewIntent(intent: Intent?) { super.onNewIntent(intent) intent

Android Navigation Url Deep Link Back to Previous App

主宰稳场 提交于 2020-11-25 03:42:17
问题 My app has just two destinations, FirstFragment and SecondFragment . I created an url Deep Link for the SecondFragment and it works fine. What I want is, after I enter the SecondFragment from the Deep Link, I want to go back to the previous app when I press the Back button. But now it always go back to the FirstFragment . I have set my MainActivity to singleTask on launchMode and tried the following but doesn't work: override fun onNewIntent(intent: Intent?) { super.onNewIntent(intent) intent

Deep linking from Notification - how to pass data back up through the backstack?

北战南征 提交于 2020-07-09 03:09:19
问题 In my app, the user can select a category, then select an item within that category to finally view the item details. The standard/forward flow is: SelectCategoryFragment -> SelectItemFragment -> ViewItemDetailsFragment On selecting a category, the selectedCatId is passed via a Bundle from SelectCategoryFragment to SelectItemFragment : NavController navController = Navigation.findNavController(v); Bundle args = new Bundle(); args.putLong(SelectItemFragment.ARG_CATEGORY_ID, selectedCatId);

Deeplink isn't correctly redirect if the app is already opened

自作多情 提交于 2020-05-17 06:12:05
问题 I'm using Jetpack Navigation for deeplinks. I've added android:launchMode="singleTask" to my Activity. Deeplink is redirected correctly if the app wasn't opened before. However, if the app exists in memory, the app is coming to the foreground but deeplink isn't opened correctly. My device is Pixel 2 with Android 10. I see that onCreate is called only the first time I'm opening app. However, onNewIntent is called every time I'm clicking deeplink. Is it a bug in Jetpack Navigation or I forgot

Deeplink: go-back to browser from myApp, after clicking back-button in android, react-native

杀马特。学长 韩版系。学妹 提交于 2020-01-24 00:58:40
问题 I am using Android app, which is openned from chrome using Deeplink , 1) Code of AndroidManifest.xml file, which opens myApp(React-Native) when I click deeplink in browser. <intent-filter android:label="@string/app_name"> <data android:scheme="myapp" android:host="myhost" /> </intent-filter> 2) url-link of browser, which opens app, by matching scheme://host, and I am passing URL's too, as: <a href= "myapp://myhost/?name=gd">Open myApp</a> 3) I am using React-native, for getting those params

opening an Instant App by a Firebase Dynamic Link with custom parameters (App Links)

倖福魔咒の 提交于 2019-12-24 19:07:01
问题 I'm searching for a way to open an Android Instant app in a mobile browser. The app supports app links (deep linking in http/https). My Android app is working as an instant app and can be opened by an app link in different apps that are not browsers (Gmail, Whatsapp, etc.). I have concluded that the only way to be able to have an instant experience in browser apps is by using Firebase Dynamic Links. The only way it works is by using short Firebase Dynamic Links (without app parameters in the