iOS Dynamic link from custom scheme url is always nil (i.e. "<my-scheme-name>://google/link/?is_weak_match=1")

2,069 views
Skip to first unread message

Emory Al-Imam

unread,
Aug 18, 2017, 10:48:19 AM8/18/17
to Firebase Google Group
I read up on all the posts I could find on SO and GG and am still getting a nil url when launching the app for the first time after tapping a dynamic link pasted into the Notes app on iOS.

Universal Links work fine and as expected through application(_:continue:restorationHandler:). When coming through application(_:open:options:) (formerly application:openURL:options:) however, the url comes in as <my-scheme-name>://google/link/?is_weak_match=1. No matter how I configure my project/app, the url is always nil. Also, application(_:open:options:) is called on every first launch of the app regardless of whether a dynamic link was tapped before the app was installed or not. Is that to be expected?

Deep link example: 
My project configuration and set up below…

Configuration:
  • apple-app-site-association file is set up and looks good for Universal Links.
  • Custom URL scheme set up in Info.plist.
  • Using latest GoogleService-Info.plist
  • Not in Safari 'Private' Mode
  • Calling FirebaseOptions.defaultOptions()?.deepLinkURLScheme = "<my-scheme-name>" before FirebaseApp.configure().
Setup:
  • Xcode 9, Beta 5
  • Deployment target: iOS 10.3.1 and higher
  • Swift 4
  • Firebase (4.0.4)
  • FirebaseAnalytics (4.0.2)
  • FirebaseAuth (4.0.0)
  • FirebaseCore (4.0.4)
  • FirebaseDatabase (4.0.0)
  • FirebaseDynamicLinks (2.0.0)
  • FirebaseInstanceID (2.0.0)
Thanks for you help.

mathew....@trov.com

unread,
Aug 24, 2017, 9:55:09 AM8/24/17
to Firebase Google Group
We are having a similar problem. We can successfully pass the Dynamic Link to our app and parse it, however when we open the app in Simulator via Xcode, we get that <my-scheme-name>://google/link/?is_weak_match=1 issue, and we're not quite sure how to fix it. We have added some error handling to bypass this for now, but in the event that a Dynamic Link is genuinely unparseable for whatever reason, we need to handle that situation accordingly. Right now we can't do that without showing an alert to every user running in simulator.

Ian Barber

unread,
Aug 28, 2017, 1:24:20 PM8/28/17
to Firebase Google Group
This one is a bit mysterious, particularly the fact that its happening on app start. Do you have custom URL schemes set up for both your scheme and your bundle ID?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, 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/058dfccc-c237-4c72-b796-c1e923be480b%40googlegroups.com.

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

Velmurugan Subramaniam

unread,
Sep 12, 2018, 11:01:06 AM9/12/18
to Firebase Google Group
Yes for me also facing this problem for last 1 months. its works before well, but No i am unable to get link when app is not installed. i getting only "project://google/link/?dismiss=1&is_weak_match=1"

Can you pls guide me how to solve this issue ?
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages