-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep link immediately opens a default browser on Xiaomi with MIUI not asking #166
Comments
so I have decided to try this: instead of rewriting https rule I will make my own links like "myapp://reservation/123" and in scheme will use "myapp" and for this to be link I will style it so it will look like link in email |
with custom scheme mobile email blocks the deep link :( and the link is not clickable |
If you have done these steps, you should generate a signed apk in release mode and try it with it. If the fingerprint in |
so there is i cant take the result work normaly while on debug mode? |
in my case, i use xiaomi MIUI its work normal debug or release mode. but in other phone ex. 'Oppo' its not work. why ? |
i think its about intent security polcy between vendor. |
I had the same exact issue, my xiomi is working on Android 10 which allows you to test such case and Oppo is working on newer version of Android like 12 which by default blocks such scenario |
I have soled the issue, so the android:autoVerify="true" allows for android 10 (Xiomi) to test it without actually setting up assetlinks.json but will show you choosing option between browser and app. If you do everything correct it will automatically open app (testing on android 12 is impossible without setting assetlinks and signing app which is terrible)
|
It works as in the example:
Deep link immediately opens a default browser on Xiaomi with MIUI
When I execute powershell script:
.\adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://my.reservation/path/portion/?uid=123&token=abc"'
it works fine!
But in real world scenario when I send myself EMAIL with the link https://my.reservation/path/portion/?uid=123&token=abc and click on mobile phone it opens the default browser, when I type this in browser also it tries to google it. I have a MIUI from XIAOMI operation system on my android device
The text was updated successfully, but these errors were encountered: