avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

Not working on Android (only with adb command) ? #23

Open BerndWessels opened 5 years ago

BerndWessels commented 5 years ago

I'm using https scheme and am testing on my Android Phone which is running Android 9.

I registered the .well-known/assetlinks.json in my domain.

Running the following from a local shell works fine and hits the callback within the app: adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://xxxxx.app/?code=123"'

BUT when an OAuth window redirects to https://xxxxx.app/?code=123 nothing happens.

Manually putting the https://xxxxx.app/?code=123 into the local browser only opens the website but does not open the App on my test phone, or when it already runs it does not hit the callback.

What can I do?

avioli commented 5 years ago

I'll investigate. Thanks for reporting.

evelyne24 commented 5 years ago

I have the same issue. Any thoughts?

mateuslacorte commented 5 years ago

Same issue here, seems like skipped frames are stoping it from working...

mateuslacorte commented 5 years ago

Actually, here it opens the app, but the link callback don't execute, may be different issues.

guitcastro commented 5 years ago

Same here.

SamadiPour commented 5 years ago

same here!

SamadiPour commented 5 years ago

I think i found out my solution

Deep links will not open your app if you type the link on your browser. You must click on the link in order to launch your app

So you can use a online html tool like htmledit.squarefree.com Paste this code in it and edit href=' ' as you want

<p><a href="app://">GOTO App</a></p>

Click on the link and it works every time :)