title: firebase dynamic link in flutter
body: <p>I am trying to implement firebase dynamic link by following the tutorial <a href="https://www.youtube.com/watch?v=6zeRdqgliJY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=6zeRdqgliJY</a> and the related code <a href="https://github.com/OsamaQureshi796/dynamic_links/blob/main/lib/home_screen.dart" rel="nofollow noreferrer">https://github.com/OsamaQureshi796/dynamic_links/blob/main/lib/home_screen.dart</a> but it does not seem to work.</p>
  <pre><code>void initDynamicLinks() async {
      FirebaseDynamicLinks.instance.onLink(
          onSuccess: (PendingDynamicLinkData? dynamicLink) async {
            final Uri? deepLink = dynamicLink?.link;
            print(&quot;deeplink found&quot;);
            if (deepLink != null) {
              print(deepLink);
              Get.to(() =&gt; _DynamicLinkScreen('firebase_dynamic_link  navigation'));
            }
          }, onError: (OnLinkErrorException e) async {
        print(&quot;deeplink error&quot;);
        print(e.message);
      });
    }
  </code></pre>
  <p>The error:
  <a href="https://i.stack.imgur.com/OWpT6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWpT6.png" alt="enter image description here" /></a></p>
  <pre><code>buildDynamicLinks(String title,String image,String docId) async {
      String url = &quot;http://smartcane.page.link&quot;;
      final DynamicLinkParameters parameters = DynamicLinkParameters(
        uriPrefix: url,
        link: Uri.parse('$url/$docId'),
        androidParameters: AndroidParameters(
          packageName: &quot;com.example.veryfirst&quot;,
          minimumVersion: 0,
        ),
        iosParameters: IosParameters(
          bundleId: &quot;Bundle-ID&quot;,
          minimumVersion: '0',
        ),
        socialMetaTagParameters: SocialMetaTagParameters(
            description: '',
            imageUrl:
            Uri.parse(&quot;$image&quot;),
            title: title),
      );
      final ShortDynamicLink dynamicUrl = await parameters.buildShortLink();
  
      String? desc = '${dynamicUrl.shortUrl.toString()}';
  
      await FlutterShare.share(title: &quot;Smart Cane&quot;, text:desc, linkUrl: &quot;&quot;, chooserTitle: &quot;smart cane&quot;);
  
    }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZFnVq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZFnVq.png" alt="enter image description here" /></a></p>
  <p>Am I missing something?</p>