mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-17 23:04:53 +08:00
bd4dc06a05f168344d13d001241c81df1949ba29
* Don't abort registerForRemoteNotifications The native call to `registerForRemoteNotifications` shouldn't be aborted even if `isRegisteredForRemoteNotifications` returns `true`. This is because after successful registration on the first boot, on successive boots the app `isRegisteredForRemoteNotifications` will return true, and then `registerForRemoteNotifications` won't be called again and therefore the APNSToken will never be set (because it is only set on the `didRegisterForRemoteNotificationsWithDeviceToken` swizzled by the `FIRMessagingRemoteNotificationsProxy`) * Set APNSToken on didRegisterForRemoteNotificationsWithDevicetoken This is what `FIRMessagingRemoteNotificationsProxy` does, and doing it here seems to avoid the race condition caused by `didRegisterForRemoteNotificationsWithDeviceToken` here being executed first and resolving the promise before the token is set (at least on iOS 12). It doesn't do any damage anyway to do it here first anyway. Co-authored-by: Russell Wheatley <russellwheatley85@gmail.com>
React Native Firebase
Looking for the legacy version of React Native Firebase? See the v5.x.x branch.
React Native Firebase is a collection of official React Native modules connecting you to Firebase services; each module is a light-weight javascript layer connecting you to the native Firebase SDKs for both iOS and Android.
React Native Firebase is built with four key principals in mind;
- 🧪 Well tested
- every module is extensively tested to >95% coverage
- 👁 Well typed
- first class support for Typescript included
- 📄 Well documented
- full reference & installation documentation alongside detailed guides and FAQs
- 🔥 Mirrors official Firebase Web SDK
- functions as a drop-in replacement for the Firebase Web SDK in React Native
- maximises cross-platform code re-usability e.g. re-using code on web platforms
Firebase Modules
This is the root of the monorepo for React Native Firebase, if you're looking for a specific package please select the package link from below.
The main package that you interface with is App (@react-native-firebase/app)
Documentation
Contributing
- Overview
- Issues & PRs
- Documentation
- Code & Testing
- Marketing & Content
- Community
- Donating
- Code of Conduct
License
- See LICENSE
Built and maintained with 💛 by Invertase.
💼 Hire Us | ☕️ Sponsor Us | 💻 Work With Us
Description
Languages
JavaScript
44.6%
Java
31.8%
Objective-C
23.3%
Ruby
0.2%
Starlark
0.1%

