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

verifyPhoneNumber method does not work on iPads #695

Open mobari opened 6 years ago

mobari commented 6 years ago

verifyPhoneNumber returns the token on iPhones and works perfectly, but does not return on iPads. As a result iPad waits forever to get the result of the promise. I guess the issue is either on silent notification or recaptcha. Expected behavior: To receive the token on iPad similar to iPhone.

mobari commented 6 years ago

Maybe this issue is because of the same issue that raised to the Firebase that is resolved in Firebase 4.2.0 by adding recaptcha (https://stackoverflow.com/questions/45111165/app-store-rejection-due-to-firebase-phone-auth). So maybe it can be similarly solved here?

mobari commented 6 years ago

I am guessing that this happens on any device with background app disabled prior to fresh install of the app. So the plugin has no way of sending the silent, remote, notification.???

eilian92 commented 6 years ago

@mobari How you get this work in iPhone? I just started to use this plugin by following the document README.md.

There are 3 arguments expected: window.FirebasePlugin.verifyPhoneNumber(number, timeOutDuration, function(credential) {...}

However, when I am coding this part (using Ionic 3 to develop hybrid app), I found that the function expected 2 arguments only.

image

Thanks

maxakash commented 5 years ago

@mobari , while using phone authentication in ios , did recaptcha verification pops up while sending code to the phone number?