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.

After Deploy React Web Appl to Firebase Hosting. PhoneAuth work on Android and Laptop but for IOS devices such like iphone and ipad wont able to click verify to login

See original GitHub issue

After deployment, i try to log in using phone auth on an iOS device it won’t work or won’t respond at all. Can Any1 help me to solve for me this error!!! Thank you

Below is my code that i use as given from the web firebaseui code

FBForm.js import React from “react”; import firebase, { firebaseAuth } from “…/…/firebase”; import PropTypes from “prop-types”; import { FirebaseAuth } from “react-firebaseui”;

class FBForm extends React.Component {

// Configure FirebaseUI. uiConfig = { signInFlow: “redirect”, signInOptions: [ { provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID, recaptchaParameters: { type: “image”, // ‘audio’ size: “normal”, // ‘invisible’ or ‘compact’ badge: “bottomleft” //’ bottomright’ or ‘inline’ applies to invisible. }, defaultCountry: “SG” // Set default country to the Singapore (+65). } ], // Sets the signedIn state property to true once signed in. callbacks: { signInSuccess: () => { this.props.submit(); return false; // Avoid redirects after sign-in. } } };

render() { return ( <div> <FirebaseAuth uiConfig={this.uiConfig} firebaseAuth={firebaseAuth} /> </div> ); } }

FBForm.propTypes = { submit: PropTypes.func.isRequired };

export default FBForm;

firebase.js import firebase from ‘firebase’;

export const config = { apiKey: process.env.REACT_APP_FIREBASE_API_KEY, authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL, projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID, storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET, messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID };

export const firebaseApp = firebase.initializeApp(config); export const firebaseAuth = firebaseApp.auth(); export const firebaseStorage = firebaseApp.storage(); export const firebaseDb = firebaseApp.database(); export default firebase;

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bojeil-googlecommented, Nov 16, 2017

Ok, I checked your app. You are getting the error: TypeError: undefined is not an object (evaluating 'window.dialogPolyfill.registerDialog') This is a duplicate of https://github.com/firebase/firebaseui-web/issues/150

You can solve for now by doing: window.dialogPolyfill = dialogPolyfill;

0reactions
bojeil-googlecommented, Nov 17, 2017

Glad it worked. I will try to get a permanent fix for this in the coming weeks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Phone Authentication Not Working after deploy
I create react app using firebase I create user ...
Read more >
Handling user authentication with Firebase in your React apps
Learn how to add user authentication to your React apps using Firebase, allowing for both Google authentication and email/password sign-in.
Read more >
Get set up as a tester with App Distribution - Firebase - Google
Get set up as a tester with App Distribution · On this page · Step 1: Sign in with Google to accept the...
Read more >
XenMobile Server Current Release
Deploy iOS and macOS devices through Apple DEP ... In the XenMobile Server console, go to Settings > Firebase Cloud Messaging and configure....
Read more >
Xamarin iOS deployment failing after iOS 15 update
Create a new Xamarin mobile app from the VS template. Connect an iOS 15 device via USB (iPad or iPhone); Attempt to run...
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