title: Flutter Firebase Dynamic Link not working on new ios app install
body: <p>I am trying to handle dynamic links within my flutter app and they work perfectly when the app is already installed.  The link works fine regardless if the app is open or closed in the background.  However when I try to use a link when the app is not installed I am properly brought to the app store, but then once I open the app from within the app store after the install completes it just opens the app and my dynamic link functionality never executes.</p>
  
  <p>My dynamic link is similar to this:
  <a href="https://startingxi.page.link/?link=https://url-redacted/game/gameId&amp;apn=myapn&amp;isi=mysi&amp;ibi=myibi&amp;st=new%20team%20vs%20&amp;sd=1%20-%202&amp;efr=1" rel="noreferrer">https://startingxi.page.link/?link=https://url-redacted/game/gameId&amp;apn=myapn&amp;isi=mysi&amp;ibi=myibi&amp;st=new%20team%20vs%20&amp;sd=1%20-%202&amp;efr=1</a>
  I have tried with both <code>efr=1</code> and without that.</p>
  
  <p>My flutter code:</p>
  
  <pre><code>  @override
    void initState() {
      super.initState();
      initDynamicLinks();
  
      futureInitState = initStateAsync();
    }
  
    Future&lt;void&gt; initDynamicLinks() async {
      final PendingDynamicLinkData data = await FirebaseDynamicLinks.instance.getInitialLink();
      final Uri deepLink = data?.link;
      await processDeepLink(deepLink);
  
      FirebaseDynamicLinks.instance.onLink(onSuccess: (PendingDynamicLinkData dynamicLink) async {
        final Uri deepLink = dynamicLink?.link;
        await processDeepLink(deepLink);
      }, onError: (OnLinkErrorException e) async {
        print('onLinkError');
        print(e.message);
        displayFlushBar('$e.message');
      });
    }
  </code></pre>
  
  <p>I have tried putting the <code>initDynamicLinks</code> within my <code>futureInitState</code> which is part of my <code>FutureBuilder</code> which does other async stuff at startup.  Any help would be appreciated.  I'm not sure how to debug this problem and this is my first ios/app dev experience so I'm not sure if there are some logs on the ios device that may help?  But at the moment it seems as though I need to deploy to production and get my change live in the app store before I can test anything and that seems less than ideal.  But since the dynamic link works in the other use cases I'm stumped on troubleshooting.</p>
  
  <p>Thanks!</p>