FirebaseExtended / experimental-extensions

🧪 A laboratory for new extensions created by Firebase
https://firebase.google.com/docs/extensions
Apache License 2.0
244 stars 41 forks source link

[firestore-shorten-urls-dynamic-links] Links won't open in Safari (iOS) #51

Closed edukun closed 2 years ago

edukun commented 3 years ago

Expected Behavior

Short links should open and redirect to full URL in Safari (iOS) like in any Chrome

Actual Behavior

White screen appears. Clicking anywhere starts redirection

Steps to Reproduce the Problem

Create a web project (no apps). Configure extension firestore-shorten-urls-dynamic-links or just use REST API to create short links.

I already tried creating an iOS app in console, using efr=1 param, generating the short link manually skipping the app preview, using enableForcedRedirect...

If you open the short url in Chrome, you get a 200 response and then the browser calls same URL with ?_imcp=1 param, and it resolves as a 302 with location the full url.

chrome

If you open the short url in Safari, you get a 200 OK response and a white page, that's it. If you open short url with ?_imcp=1 param, you get a 200 instead of 302.

safari

i14h commented 2 years ago

@dackers86 can we look into this? (also apologies for the huge delay in responding)

yamankatby commented 2 years ago

Hi @edukun, Thank you for reporting this issue. I have tried to replicate it however it seems to be working fine.

Steps I made:

Please tell me if this is still an issue and if yes please provide more information about how to replicate it.

edukun commented 2 years ago

Hi @yamankatby,

I have tested now, and it's working. But I don't know when it got fixed, since it was one year ago.

I ended up creating a Cloud Function to force the redirection, I'll keep it that way just in case.

dackers86 commented 2 years ago

Thanks @yamankatby @edukun.

Closing the issue for now.