简体   繁体   中英

Firebase dynamic link is not working on IOS

We have been using firebase dynamic link on android for a while.It was working fine in android. We have decided to build our project on IOS platform also.Now we are facing some problems in dynamic link. On pressing the link our application does not open.We also following the tutorial to integrate dynamic link on IOS.

1.Added.Plist file.

2.Added associated Domain in capabilities.(applinks:domain-link)

3.Added URL Types in info.

4.Added Team ID.

Seems like we are following the exact steps in the documentation. And yet Dynamic link is not working for us. Can anyone help us in resolving this issue?

check

  1. Apple Developer enable your Associated Domains from your app Identifiers
  2. check AASA file team id and bundle id from https://{your set domain}.page.link/apple-app-site-association
  3. AASA effective not real time
  4. open your note app input https://xxx.page.link/ooo test (not on browser)

I hope I can help you

You need to update your AppDelegate.m file as well. Follow from steps 4 mentioned in the section Open Dynamic Links in your app here

please cross check associated domains: (it must not contain http or https eg applinks:myapp.page.link ).and Dynamic link is easily work on iOS Simulator, I don't get any issues.

And if you creating dynamic link from firebase ios sdk then below code will be useful

 guard let link = URL(string: "Write your link here and parameters") else { return }
    let dynamicLinksDomainURIPrefix = "https://racematesios.page.link" //domain-link
    let linkBuilder = DynamicLinkComponents(link: link, domainURIPrefix: dynamicLinksDomainURIPrefix )

    linkBuilder!.iOSParameters = DynamicLinkIOSParameters(bundleID: "Bundle ID")
    linkBuilder!.iOSParameters?.appStoreID = "App store ID"

    guard let longDynamicLink = linkBuilder?.url else { return }
    print("The long URL is: \(longDynamicLink)")

i'm using a Flutter App and on Android i can read internal link with custom parameter, however, on iOS i can not, the App is opened but onLink.listen is never called. I did all iOS platform configuration posted on documentation.

The link used to open the App looks like (Long Dynamic Link): https://sample.page.link/?link=https://sample.page.link/test?CUSTOM_PARAM=fooBar&apn=br.com.test&isi=12345&ibi=br.com.test

The idea is to use only one dynamic link and pass dynamic data as custom parameter. Did anyone face that problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM