I add phone auth on my flutter app and when I do it on the ios simulator it works fine but when I install it in a real ios device after putting my phone number nothing happen it trigger the codeAutoRetrievalTimeout.
(in an android real device works)
I followed all the official flutter guide.
https://firebase.flutter.dev/docs/auth/phone/
Any idea ?
Thanks
2
Answers
The official guide that you followed is deprecated guide. Follow the steps on this guide: https://firebase.google.com/docs/auth/flutter/phone-auth.
Have a look on this. You may be missing something in
[appName]/ios/Runner/Info.plist
may be you have a class for handling platform, check the class bellow