Questions tagged [android-deep-link]

327 questions
56
votes
11 answers

Android app link not working in android 12 always opening in browser

I have hosted assetlinks file into our domain https://ourdomain/.well-known/assetlinks.json And also verified this using https://developers.google.com/digital-asset-links/tools/generator and from android studio's App Links Assitant and got verified…
Asd
  • 561
  • 1
  • 4
  • 5
17
votes
8 answers

App Links `legacy_failure` verification error on Android 12

I have setup assetlinks.json and AndroidManifest.xml so that the desired App Links are verified in all previous versions of Android. However, the verification no longer works in Android 12 (currently Beta 2). adb shell pm get-app-links…
Mars Lan
  • 471
  • 1
  • 4
  • 7
17
votes
0 answers

How to recreate singleTop behavior when using navigation component's deep links?

How to recreate singleTop behavior when using navigation component's deep links? I'm using Jetpack Navigation and I'm currently trying to implement notification clicks. One of the fragments is used to play music. When you background the app, a…
Ziem
  • 6,579
  • 8
  • 53
  • 86
16
votes
2 answers

How to attach debugger for Deep Link Android App trigger debug launch?

As per posted in https://developer.android.com/training/app-indexing/deep-linking.html, we could start the deeplink App Launch using the below command adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.example.android But…
Elye
  • 53,639
  • 54
  • 212
  • 474
15
votes
1 answer

Android deeplink with navigation component not working as expected

I hope you are all doing well. I have a little question; I am using navigation component, single activity multiple fragment. I have a tiny problem with deeplink. I’ve set in manifest and also set launcherMode="singleTask", I’ve set…
14
votes
3 answers

App Link not opening in Android 12 by default. Possible SHA256 issue

I have set up my deeplink by uploading the assetlinks.json file here https://example.com/.well-known/assetlinks.json Its working well till Android 11. It also works in Android 12 if it's not downloaded from Playstore(ie installed from my android…
hushed_voice
  • 3,161
  • 3
  • 34
  • 66
12
votes
2 answers

How can you create a Deeplink using placeholders and nav component at build time

We have an app that utilises Deeplinks. We also use the Android Navigation component. Currently we configure our Deeplinks in out navigation.xml file and this works fine but we now have the requirement to be able to add another Deeplink at build…
11
votes
4 answers

How to resolve Android get-app-links Returns State 1024?

I can't get deep links to work on Android 13, I've followed every tutorial out there and can't get the app to simply start after entering the website. I used the command in the android studio terminal: adb shell pm get-app-links…
Alex Charles
  • 111
  • 1
  • 5
11
votes
4 answers

Missing mutability flags: Android 12 pending intents with NavDeepLinkBuilder

I´ve started testing my app for issues on Android 12, and have had some warnings regarding mutability flags on pending intents that are set up for a home screen widget. These mutability flags are now mandatory from SDK 31. Before 31, this code would…
11
votes
3 answers

Android Applink url resolving conflicts error

I added .well-known/assetlinks.json to my site and when I try link and verify in android studio app link assistant it says "Success! Your app is associated with the selected domains." But when I test app links in android studio it says "URL…
nikinci
  • 444
  • 6
  • 25
10
votes
1 answer

Redirect in Chrome Custom tab is not captured for deep link

I'd like to capture a redirect that occurs in a Chrome Custom tab to ensure the user stays in a native mobile application. Here's how the Chrome Custom Tab is launched: val url =…
9
votes
3 answers

Deeplinking to another module with parameters

I'm trying to navigate using a deep-link for cross-module user navigation, and I need to pass some parameters. Since it's in another module, I don't have access to the id, so all of the navigate(@IdRes int resId, ...) methods are off the…
Tyler
  • 19,113
  • 19
  • 94
  • 151
9
votes
1 answer

Open app with (deep-) link containing path and query-parameter

These three urls are given: 1) https://example.com 2) https://example.com/app 3) https://example.com/app?param=hello Assumed that i receive a mail in the gmail-app with these three links, I need the following behaviour: 1) Should not open the…
JU5T1C3
  • 678
  • 1
  • 9
  • 26
8
votes
2 answers

Navigating to a composable using a deeplink with Jetpack Compose

When a user enters a geo-fence in our app, we show them an offer notification about the area, which when clicked, should direct them to a specific composable screen called SingleNotification. I've followed google's codelab and their documentation…
8
votes
1 answer

Implicit deep link does not work properly- onCreate called twice

When I open my application from the link if it is on stack already (opened) nothing happens. The existing instance of the app is opened, without any redirections. I found that the reason for this one intent is called. So, I added…
user12395530
1
2 3
21 22