In an android app I am working on, to proceed with the payment, I navigate the user to the browser.
When he reaches the final url, the app does not come again to the foreground. Any help?
I have made sure
- The sha key is in /.well-known/assetlinks.json
- The manifest contains the intent, on the related activity
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="url.gr" />
<data android:pathPrefix="/checkout/" />
</intent-filter>
</activity>
In an android app I am working on, to proceed with the payment, I navigate the user to the browser.
When he reaches the final url, the app does not come again to the foreground. Any help?
I have made sure
- The sha key is in https://url.gr/.well-known/assetlinks.json
- The manifest contains the intent, on the related activity
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="url.gr" />
<data android:pathPrefix="/checkout/" />
</intent-filter>
</activity>
Share
Improve this question
asked Feb 6 at 18:51
semicnsemicn
136 bronze badges
2
- There are many Web browsers for Android. Only some support deeplinks by default. Which browser are you testing? – CommonsWare Commented Feb 6 at 18:54
- @CommonsWare google chrome, as well as testing it with chrometabs (which is probably the same thing) – semicn Commented Feb 6 at 18:57
1 Answer
Reset to default 0Your app does not come again to the foreground because i think your data field is not set up properly. Try using this scheme :
instead ofDid you also try in order to test and see which part of the data is failing to use only the Host and the scheme definition ?
The link is not catch by your app otheriwse it would come to the foreground.
Let me know