-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
177469304: Firebase dynamic links with custom domain will only work if the custom domai has a trailing '/' #7087
Comments
I found a few problems with this issue:
|
I am using dynamic links to send password reset emails with a custom domain. The generated link in the email looks like this:
The link doesn't have a trailing '/' causing the SDK to fail the customDomainMatchFound check. |
I believe the same applies to Google Analytics logging automatically query params. Universal link @paulb777 Is this intended? If not, should I open another issue, or is it related? |
I am curious about this check for the presence of trailing ‘/‘. Can someone
explain why this check is done?
On Fri, Dec 4, 2020 at 5:32 PM Jakub Kašpar ***@***.***> wrote:
I believe the same applies to Google Analytics logging automatically query
params.
Universal link
https://www.domain.com/someLink?utm_source=email&utm_medium=email&utm_campaign=campaign
doesn't work where
Universal link
https://www.domain.com/someLink/?utm_source=email&utm_medium=email&utm_campaign=campaign
does work
@paulb777 <https://github.com/paulb777> Is this intended? If not, should
I open another issue, or is it related?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7087 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAY5UTTU6P7R6AGFF3PEEYTSTDFXBANCNFSM4UMCEJ2Q>
.
--
Thanks,
Adi
Email: [email protected]
|
Internal bug created and will be prioritizing and looking into it: b/177469304 |
Oh man, I've spent days trying to figure out why email sign in links worked fine in Apple Mail but no other email client. Eventually went deep and logged the incoming url and somehow slash was missing even thought they weren't when manually copied. I assume iOS applies missing slash when copied?. Anyhow, It's been 2 months since this was filed and is currently breaking email passwordless registrations for iOS users. |
For me to get around this issue, I added a temp hack to handleUniversalLink:
|
I just wanted to add that sign-in links work from other email apps on iOS if a Google-provided domain (e.g. I have a working example react-native app with a Google-provided domain here. |
Can you please fix this???? I've just lost a whole day until I debugged the problem myself and searched for this open issue. This completely blocks custom domains... |
I also spent a day trying to find the problem. |
@reimertz Hi. I'm having the same problem and I would like to apply your workaround. I've created a local copy of the FirebaseDynamicLinks pod directory, I've modified the handleUniversalLink method and I'm pointing to this local pod inside the main Podfile. Not sure how to write the podspec for the local pod however. Can you help with some basic steps of using a custom local pod of FirebaseDynamicLinks? (I'm a Flutter developer so I am not very familiar with how pods work on ios.) |
I've also spent the whole day trying to figure out why deep link is not triggered by my app from GMail iOS App. |
exactly same^ |
This seems like purposefully introduced in PR: #2563 |
[FDL] Refactoring and fixing url validation Refactored the existing code to use Regex to validate FDL URL formats. Added checks to make sure the 'link' query param is having an http/https prefix input. == This is going to be breaking the existing SDK's unintended behavior to support links with non http/https content. The existing SDK was constructing the Dynamic link even though the backend response to resolve the link is not successful. Added support for URL(s) with Query string starting with '?' alone. Previously it was supporting '/?' formats only. This fixes 177469304: Firebase dynamic links with custom domain will only work if the custom domain has a trailing '/' #7087 Added more test cases to be in sync with FDL backend validation. Removed invalid test inputs and corrected few test cases to make the input in proper format.
[REQUIRED] Step 1: Describe your environment
CocoaPods
(select one)[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Using a custom sub domain for dynamic links (like links.example.com) doesn't work. The piece of code below from the firebase library is checking for a trailing '/' at the end of the host. See the line:
Why is this check necessary? This check will only allow custom domains that have a trailing '/'
Relevant Code:
The text was updated successfully, but these errors were encountered: