question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase UI does not work with Safari on Mac or iPhone. Recent regression.

See original GitHub issue
  • Operating System version: MacOS 13 or iOS 16
  • Browser version: Safari 16.1
  • Firebase UI version: Latest
  • Firebase SDK version: Latest

[REQUIRED] Describe the problem

Firebase UI does not work with Safari on Mac or iPhone.

Steps to reproduce:

  1. Go to https://fir-ui-demo-84a6c.firebaseapp.com/. This is the project’s own login demo page.
  2. Try to log in on Mac or iPhone.
  3. Login hangs.

Additionally: these steps work fine with Chrome on the same Mac.

Relevant Code:

N/A

Seen in console:

TypeError: Right side of assignment cannot be destructured

 async onAuthEvent(event: AuthEvent): Promise<void> {
    // this line
    const { urlResponse, sessionId, postBody, tenantId, error, type } = event;
    if (error) {
      this.reject(error);
      return;
    }

The event it is receiving seems to be a window Message event, and not the JSON contained within data which is what contains the fields to be destructured.

image

Source file: https://github.com/firebase/firebase-js-sdk/blob/b6c231a282313aeda59c447c24f71fdad35240bc/packages/auth/src/core/strategies/abstract_popup_redirect_operation.ts#L86

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:8
  • Comments:17

github_iconTop GitHub Comments

5reactions
jfries289commented, Oct 26, 2022

After further digging I’ve found a potential workaround, which is to update the uiConfig to use a popup sign-in workflow instead of the default redirect.

This appears to work for our web app. However, our mobile application utilizes a webview and unfortunately the popup required for this solution does not work. Still hoping for some action/input by the Firebase team. @firebase-ops , @bojeil-google , @jamesdaniels ?

5reactions
safetymonkeycommented, Oct 25, 2022

It would be really nice if someone from the Firebase team could respond here. This is now impacting everyone who upgrades to iOS 16.1 and MacOS Ventura, and I expect it will eventually trickle down to users on older OS versions as well. The only option we have at the moment is apparently just to rip out firebaseui-web and write our own auth layer, which isn’t exactly ideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tweets with replies by Backstabbr ...
Firebase UI does not work with Safari on Mac or iPhone. Recent regression. · Issue #977 · firebas... Operating System version: MacOS 13...
Read more >
Firebase Apple SDK Release Notes - Google
Fixed a 10.0.0 regression where metadata passed to putFile was not properly ... Mac apps using Firebase products that store SDK data in...
Read more >
FirebaseUi-web Verify button not working on Safari
Using FirebaseUI on a web and the Verify Button on a Phone Verification is not working on Safari - Iphone and Mac. On...
Read more >
在iOS 16.1 版本,使用Firebase Google 登入透過 ...
並且在下方的issue 中也有相似問題的討論。 Firebase UI does not work with Safari on Mac or iPhone. Recent regression. · Issue #977 ·… Operating ...
Read more >
Apple Developer Forums
We are currently tackling subscription in our iOS app through apple pay. This leads to a few issues, besides not having full control...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found