Giter VIP home page Giter VIP logo

Comments (18)

uzbekjon avatar uzbekjon commented on July 17, 2024 5

@Sagun085 read the warning message above the error. Seems like you did not install the plugin.

from cordova-plugin-firebase-authentication.

IngAjVillalon avatar IngAjVillalon commented on July 17, 2024 5

That is not a problem in itself of the plugin, but of its development logic.
Before executing any function of the plugin, you must be sure that cordova is running:

this.platform.ready().then(() => {
   if(this.platform.is('hybrid')) {
      this.firebaseAuthentication.verifyPhoneNumber(...)
         .then(...)
   }
});

I just made it work fine with no problem in Ionic 5.
My application runs very well with the login with Phone, Google, and Facebook.
It worked fine with Capacitor (v2) and Cordova (v9).

from cordova-plugin-firebase-authentication.

uzbekjon avatar uzbekjon commented on July 17, 2024 4

You will get this error in non-cordova environment such as browser (since this plugin does not have support for browser). You should not see this error when you run your app on a device.

from cordova-plugin-firebase-authentication.

arghyaExicube avatar arghyaExicube commented on July 17, 2024

did you get any solutions? i have facing the problem.

from cordova-plugin-firebase-authentication.

Drmorph avatar Drmorph commented on July 17, 2024

same problem here

from cordova-plugin-firebase-authentication.

venkateshwaranks1996 avatar venkateshwaranks1996 commented on July 17, 2024

Same issue

from cordova-plugin-firebase-authentication.

lordonnance avatar lordonnance commented on July 17, 2024

This error occurs to me when I'm debugging on browser.

On Android device it's running OK

from cordova-plugin-firebase-authentication.

Drmorph avatar Drmorph commented on July 17, 2024

@lordonnance This error occurs to me when I'm on debug and on release IOS

from cordova-plugin-firebase-authentication.

ironbone avatar ironbone commented on July 17, 2024

I get the same but with createUserWithEmailAndPassword

from cordova-plugin-firebase-authentication.

mavilla-vishnu avatar mavilla-vishnu commented on July 17, 2024

same problem...

from cordova-plugin-firebase-authentication.

Sagun085 avatar Sagun085 commented on July 17, 2024

Doesn't make any difference. I'm running it on my device and still the same error.
ERROR

from cordova-plugin-firebase-authentication.

Sagun085 avatar Sagun085 commented on July 17, 2024

Nice catch @uzbekjon
Thanks, actually I was using the older version of cordova(8.0).
After updating Cordova from 8 to 9.0.0 and installing the plugins:

$ ionic cordova plugin add cordova-plugin-firebase-authentication
$ npm install @ionic-native/firebase-authentication

I could not build the app! it failed! tried multiple times!

errors

from cordova-plugin-firebase-authentication.

qmonmert avatar qmonmert commented on July 17, 2024

Same bug than @Sagun085 for me :(

from cordova-plugin-firebase-authentication.

pkitatta avatar pkitatta commented on July 17, 2024

@Sagun085 same here. I get the error when I install the plugin, the error goes away when I remove the plugin. Did you get a work around?

from cordova-plugin-firebase-authentication.

ahsan-alii avatar ahsan-alii commented on July 17, 2024

still having the same error
@IngAjVillalon can you please elaborate a bit how did you solved this issue ?

from cordova-plugin-firebase-authentication.

DevNiklesh avatar DevNiklesh commented on July 17, 2024

@IngAjVillalon I'm working with ionic-capacitor and I'm not receiving phone verification sms after generating signed apk. Could you help me with it?

from cordova-plugin-firebase-authentication.

IngAjVillalon avatar IngAjVillalon commented on July 17, 2024

Ok, I'll make a demo and repository so It can help you.

from cordova-plugin-firebase-authentication.

DevNiklesh avatar DevNiklesh commented on July 17, 2024

@IngAjVillalon would love to see your demo!!... But I kinda solved the issue after scratching my head for 1 full day

To anyone facing similar issue like mine..

  • Note that SHA-1 key must match both in your firebase project as well as APK signature!

How to check it? (Incase, you are a rookie like meπŸ˜…)

  • After generating Signed APK file.. open the key file using any keystore explorer software where you can find your SHA-1 key with which you had signed your app.
  • Now, head on to your project in firebase -->Project settings.. where you can provide that generated SHA-1 key for Android app

Also remember that you will receive SMS only after uploading in Google Store.. in order to test your app provide your testing number in Authentication-->sign in methods-->phone authentication

Glad to help.. incase I'm wrong.. kindly correct me!

from cordova-plugin-firebase-authentication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.