How to receive parameters from firebase dynamic links in flutter?
I created a short url:
which points to
But I want to add a url query parameter like:
https://example.com/view-product?id=56
Note that "56" is variable and changes dynamically inside app flow. I am unable to receive this "id" parameter.
On browser I tried entering https://subdomain.example.com/product?id=56
I received the link: https://example.com/view-product
     FirebaseDynamicLinks.instance.onLink(
        onSuccess: (PendingDynamicLinkData dynamicLink) async {
      final Uri deepLink = dynamicLink?.link;
      showModalBottomSheet(context: context, builder: (context){
        return Container(
          height: 100.0,
          child: Text(deepLink.toString()),
        );
      });
      if (deepLink != null) {
        debugPrint("Link found on line: "+deepLink.queryParameters.toString());
      }
    }, onError: (OnLinkErrorException e) async {
      print('onLinkError');
      print(e.message);
    });
 
    