avioli / uni_links

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

LinkStream subscription to in app view #143

Open yvesbou opened 2 years ago

yvesbou commented 2 years ago

If I launch the url of a payment service in the webbrowser with url_launcher (6.0.12).

_launchURL(url) async {
    if (await canLaunch(url)) {
      await launch(url);

The stream subscription successfully listens to the success or failure url to which the client is redirected

I use:

_sub = uriLinkStream.listen((Uri? uri){

if (uri?.path=='/success'){
}
}

But when I use the in app webview of url_launcher

_launchURL(url) async {
    if (await canLaunch(url)) {
      await launch(url, forceWebView: true, enableJavaScript: true);}}

the same uniLinksStream.listen() is not able to trigger onData function,

I am using an android device (Version 7.1.2).