How to shorten a Firebase Dynamic Link using my own domain name

前端 未结 2 999
悲哀的现实
悲哀的现实 2021-01-11 12:58

I\'m trying to implement Firebase Dynamic Links in an iOS app. The goal is to have a clean URL for marketing purposes so folks can share links on social media. The idea is f

相关标签:
2条回答
  • 2021-01-11 13:07

    Google Firebase team added support for custom subdomains to Dynamic Links.

    • You can now specify up to five custom page.link subdomains for your Dynamic Links. Short links using these new custom subdomains look like the following example: https://example.page.link/abcXYZ

    • Firebase Dynamic Link domains assigned on projects couldn't be deleted at this time.( firebase team is working on it.)

    • You can now whitelist the URL patterns that can be used as a Dynamic Link's deep link (link) or fallback link (ifl, ipfl, afl, ofl). If you define a whitelist, Dynamic Links won't redirect to URLs that don't match a whitelisted pattern.

    • You can try both of these features in the Firebase console.

    0 讨论(0)
  • 2021-01-11 13:09

    This is not currently possible with Firebase. If you need whitelabeled URLs, you either need to build it yourself or use a more powerful link platform like Branch.io (full disclosure: I'm on the Branch team).

    To answer your questions specifically:

    1. I have implemented Firebase Dynamic Links in a testbed app and can confirm that linking through installation the first time does work for both long and short URL variants. There is likely something wrong with your AppDelegate config, so we can take a look at that if you want to share code.
    2. Firebase does not support custom domains at this time. In theory (if you can solve the first issue above) you could get this working for first install by using a redirect like you have tried. However, you'll never be able to get it to launch the app with Firebase link data once the app is installed. This is because Universal Links work based on the domain of the link, and don't even request the web destination. Even if you enable Universal Links manually on your own domain, the app will open immediately without ever calling Firebase and the link data will never be set.
    0 讨论(0)
提交回复
热议问题