llfbandit / app_links

Android App Links, Deep Links, iOs Universal Links and Custom URL schemes handler for Flutter.
https://pub.dev/packages/app_links
Apache License 2.0
176 stars 68 forks source link

How to return back to calling app/browser #12

Closed Zambiorix closed 2 years ago

Zambiorix commented 2 years ago

Hi

When my app is started from an app link, how do I return to the calling app or browser?

I have tried with url_launcher

_alReferer is a back-link I get from a uri parameter sent with the app link

                  launch(
                    _alReferer,
                    forceSafariVC: false,
                    forceWebView: false,
                    webOnlyWindowName: '_self',
                  );

But that does not work as expected. I go back to the calling browser, but the link is opened in a new tab. I want to return to the same tab as the app link call originated from...

Is there another way to go back to the calling app or browser (same tab)?

Thanks

Gerd

llfbandit commented 2 years ago

Hi, I don't know what you expect from me here. Why can't you press back button to return on the previous app?

Zambiorix commented 2 years ago

Hi,

I was wondering if you know of a way to programmatically go back to the calling app, not manually by pressing the back button (or back-link on iOS).

Thanks Gerd

llfbandit commented 2 years ago

I'm afraid not sorry. The only way, if you know the caller app, is to use the same mecanism to call it.