I am trying to implement Firebase Dynamic Links in an iOS app. The goal is to have a clean URL for marketing purposes so that people can share links on social networks. The idea is that people will share a clean URL that starts with my domain name.
When the application is installed after clicking on this link, we want to be able to track who referenced the application by looking at the payload supplied by Firebase. I think this goal is similar to the Firebase use case , to convert web users to mobile application users.
An example of a link that I would like to provide for sharing on social networks: http://example.com/my-payload-here
I have tried several cases, but I cannot get the behavior that I am looking for anyway. Has anyone implemented this successfully before?
Here is my test procedure:
- Uninstall application
- Send the test link in iMessage to yourself
- Tap the link on my iOS device (without using a simulator)
- Install the app from the App Store
- Launch the application after the download is completed by clicking the "Open" button in the App Store.
Below are my findings:
Short link created using the Firebase Console ( https://xyz.app.goo.gl/ABCD ) - The link opens in the App Store, I install the application. When I run the application after installation, the payload is not delivered. If I exit the application, return to the link in iMessage and start the second time the payload is delivered.
Long link identical to "Long Dynamic Link" from the Firebase console for the link generated in # 1 ( https://xyz.app.goo.gl/?link=http://example.com/my-payload-here&isi=12345&ibi = com.example.MyApp ) - the behavior is identical to # 1
Short link using my domain ( http://example.com/redirect/my-payload-here configured to 301 redirect to URL in # 2) - Opens in the App Store. I install. When I run the application after installation, the payload is not delivered. If I exit the application, go back to the link in iMessage and run the second time, the link still goes to the App Store.
Some questions that I have:
- Why is the payload delivered at first launch for cases 1 and 2?
- How can we launch this application launch and deliver a payload instead of going to the App Store?
I also reviewed the Firebase flowchart for deep link in case 2.
ios firebase firebase-dynamic-links
Zach rattner
source share