arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1.01k stars 1.56k forks source link

Phoneauth SMS are sometimes not beeing sent with no error message #914

Open BernardoGR opened 6 years ago

BernardoGR commented 6 years ago

Describe the bug I have been using this plugin with no problems for almost a year now, all phoneauth tests worked fined for both iOS and Android. A week ago the production version (in stores) started having downloads and user registrations and we noticed that some of the user never recieved the SMS while others did recieve it with no problem. I tested it myself and found this behavior where sometimes I recieved it and sometimes I didn't, even if tried different phone numbers or devicec (tried on 4 different android diveces and on 2 iOS).

There is no error catched on the "verifyPhoneNumber" function (just when I tried for too many times and I exceed the 10 sms per hour per user cuota).

I contacted the firebase support team and they told me that don't have reports of any incidents on their status dashboard and could not offer any more help since this is not their official SDK.

To Reproduce Call the "verifyPhoneNumber" on iOS or Android devices. There are periods of time where the SMS won't be sent.

Expected behavior SMS should be sent with any problem all the time.

Plugin Version cordova-plugin-firebase 2.0.5

Smartphone (please complete the following information):

    • Device: iPhone 5
    • OS: iOS10
    • Devace: Samsung Galaxy S9
    • OS; Android 8.0.0

Additional context Ionic version: 3.16.0 Cordova version: 7.1.0

I have 2 proyects in firebase for this app (production and development) and with both I have experience this same behaviour. I dont think the problem is in my code but put it to further the information:

this.firebaseNative.verifyPhoneNumber(this.telephone.full, 120).then(res => { this.verificationId = res.verificationId; // android case, on iOS I get the string directly from the response // ... promt the user to input the sms code }).catch(error => { console.error(error); // ... });

briantq commented 6 years ago

@BernardoGR was your production app working and then stopped working? Or was it that you released a new version of your app and it started having problems?

BernardoGR commented 6 years ago

@briantq The production app started having problems, no changes made to that part of the code. I am not sure if the problem was there before since I just noticed when more users started to do the sign in and didn't recieve the SMS. After that, I tested it myself and found out that most of the times it works fine but there are times that the SMS is never delivered to the phone, with no error message shown.