-
We have a redirect that is getting opened in the internal browser and the should redirect back and should be intercepted by a redirect link. It works fine for iOS, but for Android, for some reason, it sometimes works and sometimes doesn't. We have And we have intent filters set in the What can be the issue here?
Working link with assetlinks.json And redirect is These are the versions we're using
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Can you share how you are getting this to work with iOS? We are doing similar things and having a difficult time. We are using the @capacitor/Browser plugin to open the url in the app, and then attempting to redirect back to the app using deep links.
App.addListener('appUrlOpen', function (event: URLOpenListenerEvent) {
...
}) Are we missing a step? Interested to hear what you have done to get it working at all! Thanks 🙂 |
Beta Was this translation helpful? Give feedback.
-
Ok, so the issue was with the And, yeah, the correct SHA 256 for a deployed app we found in the developer console of play market in the section with upload key or so. Also don't forget to add So, long story short, if something is broken in that regard test |
Beta Was this translation helpful? Give feedback.
Ok, so the issue was with the
assetlinks.json
file that had the wrong SHA 256 in it. So for Android 11, it was working with suggesting opening in the app, but for Android 12 if you have the incorrectassetlinks.json
your app will never intercept links unless they're trusted withassetlinks.json
lookup. It will also never suggest opening a link with your app and Chrome let say, but would rather just open Chrome immediately.In order to locally test this behavior, you need to go into App info and click into the
Open by default
section, and click "Add Link +" which will suggest links that are described in yourAndroidManifest
but are not verified. You need to go and explicitly enable them fo…