-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix (messaging) and signInWithPhoneNumber #3425
Fix (messaging) and signInWithPhoneNumber #3425
Conversation
NativeFirebaseError: [auth/notification-not-forwarded] If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth's canHandleNotificaton: method. at FirebaseAuthModule.signInWithPhoneNumber (http://192.168.0.167:8081/index.bundle?platform=ios&dev=true&minify=false:107323:28)
Codecov Report
@@ Coverage Diff @@
## master #3425 +/- ##
=========================================
Coverage ? 85.25%
=========================================
Files ? 108
Lines ? 3429
Branches ? 0
=========================================
Hits ? 2923
Misses ? 506
Partials ? 0 |
This works for me and is already in my production application. |
Patch Package to the rescue: https://github.com/ds300/patch-package Do not develop in react-native without it |
This change needs updating to handle if the Auth package is not in use by the users application - FIRAuth class won't be found in that case and would cause a build failure I can look at this though if needed |
what's the best way to do this? |
This fix works for me. |
Have fixed this in fb70797 with the FIRAuth class existence check Thanks for sending this PR - it was helpful |
(a release will be out later today) |
* fix(messaging,ios): keep original UNUserNotificationCenter delegate Keeps a reference to any original UNUserNotificationCenter delegates that are set before we replace the delegate with out own implementation. Internally we will also call the original delegate if our code does not already handle the delegate call. This should keep compatibility with other RN modules that set the delegate. * v6.4.1-alpha.0 * Revert "v6.4.1-alpha.0" This reverts commit b355a86 * feat: automatically register with APNs * docs: typos * fix: forward delegate call to FIRAuth Fixes / supersedes #3425 * fix(messaging): add activity check to getInitialNotification (#3495) * fix(messaging): add activity check to getInitialNotification * fix(messaging): add activity check to getInitialNotification * Update .spellcheck.dict.txt Co-authored-by: Mike Diarmid <[email protected]> Co-authored-by: Elliot Hesp <[email protected]>
…ertase#3427) * fix(messaging,ios): keep original UNUserNotificationCenter delegate Keeps a reference to any original UNUserNotificationCenter delegates that are set before we replace the delegate with out own implementation. Internally we will also call the original delegate if our code does not already handle the delegate call. This should keep compatibility with other RN modules that set the delegate. * v6.4.1-alpha.0 * Revert "v6.4.1-alpha.0" This reverts commit b355a86 * feat: automatically register with APNs * docs: typos * fix: forward delegate call to FIRAuth Fixes / supersedes invertase#3425 * fix(messaging): add activity check to getInitialNotification (invertase#3495) * fix(messaging): add activity check to getInitialNotification * fix(messaging): add activity check to getInitialNotification * Update .spellcheck.dict.txt Co-authored-by: Mike Diarmid <[email protected]> Co-authored-by: Elliot Hesp <[email protected]>
…ertase#3427) * fix(messaging,ios): keep original UNUserNotificationCenter delegate Keeps a reference to any original UNUserNotificationCenter delegates that are set before we replace the delegate with out own implementation. Internally we will also call the original delegate if our code does not already handle the delegate call. This should keep compatibility with other RN modules that set the delegate. * v6.4.1-alpha.0 * Revert "v6.4.1-alpha.0" This reverts commit b355a86 * feat: automatically register with APNs * docs: typos * fix: forward delegate call to FIRAuth Fixes / supersedes invertase#3425 * fix(messaging): add activity check to getInitialNotification (invertase#3495) * fix(messaging): add activity check to getInitialNotification * fix(messaging): add activity check to getInitialNotification * Update .spellcheck.dict.txt Co-authored-by: Mike Diarmid <[email protected]> Co-authored-by: Elliot Hesp <[email protected]>
Summary
Currently, when trying to use the phone login. conflicts with notifications
Error:
NativeFirebaseError: [auth/notification-not-forwarded] If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth's canHandleNotificaton: method.
at FirebaseAuthModule.signInWithPhoneNumber (http://192.168.0.167:8081/index.bundle?platform=ios&dev=true&minify=false:107323:28)