You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the above lines to info.plist is sufficient to bypass the APNS error on iOS devices, but not iOS emulators.
BUT, this changes causes a hang in the login process. In particular,
let idp = await firebase().ui().show({ providers: [new PhoneProvider()] });
yields this sequence:
Welcome screen presented, with "Sign in with phone" button as only visible option - tap button
Enter phone number screen presented - enter number and tap Verify
Verifying you’re not a robot… screen appears briefly
about:blank screen appears, empty screen with Done (upper-left) and refresh (upper-right) as only options, and tapping Done cancels the login with an error, The interaction was cancelled by the user, and crashes
When I attempt to display the error message with an alert, the still app crashes, even within a try/catch block
When I attempt to log in again, ui().show crashes with the error message, Error: Cannot read properties of undefined (reading 'presentViewControllerAnimatedCompletion')
Might some type of Firebase AppDelegate be required for phone authentication?
The text was updated successfully, but these errors were encountered:
I have found through my investigation that is sufficient to call getAPNSToken() prior to calling getToken() to avoid the dreaded error message
Error: The operation couldn’t be completed. No APNS token specified before fetching FCM Token
Doing so also avoids their hang/crash problem documented in this issue, so I will close it. You'll still want to catch the error, as it will be thrown on iOS emulators. My code, in app-root.js, looks like this:
This is related to the fix proposed in issue 221 regarding 'No APNS token specified error...
Adding the above lines to info.plist is sufficient to bypass the APNS error on iOS devices, but not iOS emulators.
BUT, this changes causes a hang in the login process. In particular,
let idp = await firebase().ui().show({ providers: [new PhoneProvider()] });
yields this sequence:
Might some type of Firebase AppDelegate be required for phone authentication?
The text was updated successfully, but these errors were encountered: