FirebaseUI-iOS: FirebaseUI/Phone authorization not working
I use FirebaseUI/Phone 4.0.0 installed via cocoapods. After i set FirebaseAppDelegateProxyEnabled to NO and implement all steps in https://firebase.google.com/docs/auth/ios/phone-auth i receive push notification from firebase:
"com.google.firebase.auth" = { warning = "This fake notification should be forwarded to Firebase Auth."; };
call canHandleNotification
return no. When i try to login via FirbaseUI it show error “Your request could not be completed. Try again later”. All works correctly when firebase use swizzling.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
@Tayphoon Please note that FirebaseAuth uses timeout in some operations for better user experiences, so stopping the app at certain breakpoints (in particular, before forwarding the APNs token or notification to FirebaseAuth) may cause artificial failures.
In addition, did you specify the APNs token type (sandbox or production) when calling FirebaseAuth’s
setAPNSToken
(given that you mentioned that you disabled app delegate swizzling)?@Tayphoon Probably you’ve implemented app in a correct way. I believe problem is that you enabled breakpoint at the beginning of the:
If yes, please proceed with the next steps:
This happens because we are sending probing notification first (you have printed this notification). This’s done in order to verify that developer implemented all required methods. Process of client verification (including sending probing notification) has a timeout of 1 sec and it seems that you are hitting this timeout. You can find related code here.
Please let me know if that helped you.