avioli / uni_links

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

Apps doesn't opens specific page when App comes from background. #113

Open sangamsharma6 opened 3 years ago

sangamsharma6 commented 3 years ago

I'm using [https scheme, custom scheme, https and custom schemes] and am testing on my [iPhone6, Google Pixel, iOS Simulator, Android Emulator], which is running [iOS8.1, Android 8: Oreo].

...add any other context about the problem here.

e.g. I call '...' method and... nothing happens!!!

avioli commented 3 years ago

This plugin is not going to navigate your app by magically. It is up to you as a developer to use the details from this plugin to then do the navigation programmatically.

BringTheChill commented 3 years ago

@avioli maybe he tried. I tried and it's not working. It's working just if the app is closed. I tried with linkStream and uriLinkStream

7Kronos commented 3 years ago

@avioli maybe he tried. I tried and it's not working. It's working just if the app is closed. I tried with linkStream and uriLinkStream

If you are using android emulator, use the full command as shown in the readme : adb shell 'am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "unilinks://host/path/subpath"'

BringTheChill commented 3 years ago

Actually for me the problem was pushAndRemoveUntil(). If I use push() is working.

Nilesh-Chaudahri commented 3 years ago

i am facing the same issue...when app is not running in back ground, it able to go to next screen. but when app running in back background we are not able move to next screen

echomartha commented 3 years ago

try this https://github.com/avioli/uni_links/issues/125#issuecomment-875509859

NestorDevs commented 3 years ago

The opposite happens to me when the app is closed it does not open a url that I want to show ... it only opens the home ... what can I do there?

osamamohammed98 commented 2 years ago

i have same issue

osamamohammed98 commented 2 years ago
Screen Shot 2022-04-27 at 11 20 33 AM

i solve this issue by do this

osamamohammed98 commented 2 years ago
Screen Shot 2022-04-27 at 11 21 27 AM
osamamohammed98 commented 2 years ago
Screen Shot 2022-04-27 at 11 22 24 AM

don't forget add the WidgetsBinding.instance.addPostFrameCallback

osamamohammed98 commented 2 years ago

you can close this issue