Dynamic link doesn't work when app is not installed

2,709 views
Skip to first unread message

Johnson Hsieh

unread,
Nov 22, 2016, 3:37:02 PM11/22/16
to Firebase Google Group
Hi there,

Has anyone been having problem with dynamic links not working when the app is not installed? Here is what I'm seeing:

1) Click on dynamic link: https://<myappid>.app.goo.gl/?link=https%3A...&isi=...&ibi=...
2) This link goes to Safari and gives pop-up "Open this page in 'App Store'?"
3) I click "Open" and downloads the app from App Store. Then click "OPEN" after app is installed.
4) Upon opening the app, I immediately get redirected to the Safari page https://<myappid>.app.goo.gl//google/link/?deep_link_id=https%3A..., with 400 "That's an error" rendered in the browser.

Has anyone seen a similar issue, or has been able to get dynamic link to work when the app is not already installed?

Thanks,
Johnson

Ian Barber

unread,
Nov 22, 2016, 7:36:18 PM11/22/16
to Firebase Google Group
Can you check you've set up universal links correctly for your app (e.g. capability in the app and matching values in the firebase console) - it sounds like the url isn't resolving to your app so is still bouncing to Safari. 

Johnson Hsieh

unread,
Nov 23, 2016, 3:35:47 PM11/23/16
to Firebase Google Group
Here's the capability in the app:
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:<myappid>.app.goo.gl</string>
</array>

And in the firebase console, my dynamic link domain is: https://<myappid>.app.goo.gl/
Where <myappid> are matching.

Btw, the dynamic link works when the app is already installed. I only see the above issue when the app is not already installed and I'm taken through the download flow.

Thanks,
Johnson

Johnson Hsieh

unread,
Nov 23, 2016, 3:35:52 PM11/23/16
to Firebase Google Group
Question about URL scheme (custom or not): does this scheme refer to the bundle ID or the firebase app domain?
In my AppDelegate.swift, the line:
FIROptions.default().deepLinkURLScheme = self.customURLScheme
We currently have
  self.customURLScheme = 'https://<myappid>.app.goo.gl'
but I think it should be
  self.customURLScheme = 'com.my.app.bundle.id'

Can you verify that it should be the latter? If so, this might be the cause of the issue (or one of the causes for the issue). 

Thanks,
Johnson


On Tuesday, November 22, 2016 at 4:36:18 PM UTC-8, Ian Barber wrote:

Ian Barber

unread,
Nov 28, 2016, 5:19:38 PM11/28/16
to Firebase Google Group
Custom URL scheme should be the bundle ID - make sure that that bundle ID is actually registered as a custom URL scheme for that app as well. 

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/gooTo9H8PSs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/18f48d40-162b-4ad9-ad9e-ead941925fe9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages