Usage of "messaging().registerDeviceForRemoteMessages()" is not required. You only need to register if auto-registration is disabled in your 'firebase.json' configuration file via the 'messaging_ios_auto_register_for_remote_messages' property.
I鈥檓 getting this warning when I run my app in both the simulator (iPhone 11) and iPhone X real device. I鈥檓 confused, is registering the device handled automatically?
Describe your issue here
Click To Expand
#### `package.json`: { "name": "Conesse", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@fortawesome/fontawesome-pro": "^5.13.1", "@fortawesome/fontawesome-svg-core": "^1.2.29", "@fortawesome/free-brands-svg-icons": "^5.13.1", "@fortawesome/free-solid-svg-icons": "^5.13.1", "@fortawesome/pro-light-svg-icons": "^5.13.1", "@fortawesome/pro-regular-svg-icons": "^5.13.1", "@fortawesome/pro-solid-svg-icons": "^5.13.1", "@fortawesome/react-native-fontawesome": "^0.2.5", "@invertase/react-native-apple-authentication": "^1.1.2", "@notifee/react-native": "^0.9.1", "@react-native-community/async-storage": "^1.11.0", "@react-native-community/cameraroll": "^1.8.1", "@react-native-community/google-signin": "^4.0.3", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/toolbar-android": "0.1.0-rc.2", "@react-native-firebase/app": "^8.2.0", "@react-native-firebase/auth": "^8.2.0", "@react-native-firebase/database": "^7.3.2", "@react-native-firebase/firestore": "^7.4.3", "@react-native-firebase/functions": "^7.2.2", "@react-native-firebase/messaging": "^7.4.2", "@react-native-firebase/storage": "^7.2.2", "@react-native-mapbox-gl/maps": "^8.1.0-rc.2", "@react-navigation/bottom-tabs": "^5.7.1", "@react-navigation/drawer": "^5.8.5", "@react-navigation/material-top-tabs": "^5.2.13", "@react-navigation/native": "^5.7.0", "@react-navigation/stack": "^5.7.0", "date-fns": "^2.14.0", "faker": "^4.1.0", "ngeohash": "^0.6.3", "react": "16.11.0", "react-native": "0.62.2", "react-native-apple-authentication": "^1.0.6", "react-native-elements": "^1.2.7", "react-native-fbsdk": "^1.1.2", "react-native-geolocation-service": "^4.0.2", "react-native-gesture-handler": "^1.6.1", "react-native-gifted-chat": "^0.13.0", "react-native-image-crop-picker": "^0.28.0", "react-native-image-view": "^2.1.9", "react-native-modalize": "^2.0.4", "react-native-permissions": "^2.1.5", "react-native-portalize": "^1.0.3", "react-native-qrcode-scanner": "^1.4.1", "react-native-reanimated": "^1.9.0", "react-native-responsive-fontsize": "^0.4.3", "react-native-responsive-screen": "^1.4.1", "react-native-safe-area-context": "^0.7.3", "react-native-screens": "^2.9.0", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.14.4", "react-native-twitter-signin": "github:GoldenOwlAsia/react-native-twitter-signin#master", "react-native-vector-icons": "^6.7.0", "react-native-webview": "^9.4.0", "react-redux": "^7.2.0", "reanimated-bottom-sheet": "^1.0.0-alpha.20", "redux": "^4.0.5", "redux-thunk": "^2.3.0" }, "devDependencies": { "@babel/core": "^7.10.5", "@babel/runtime": "^7.10.5", "@react-native-community/eslint-config": "^0.0.7", "babel-jest": "^25.5.1", "eslint": "^6.8.0", "jest": "^25.5.4", "metro-react-native-babel-preset": "^0.58.0", "react-test-renderer": "16.9.0" }, "jest": { "preset": "react-native" } }
# N/A
#### `firebase.json` for react-native-firebase v6:
# N/A
### iOS
#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: platform :ios, '10.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'Conesse' do pod 'TwitterKit5' # Pods for Conesse # pod 'Firebase/Analytics' pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" pod 'React', :path => '../node_modules/react-native/' pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' # pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon" pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga' pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' pod 'GoogleSignIn' pod 'react-native-geolocation', path: '../node_modules/@react-native-community/geolocation' permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec" pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec" pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec" pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" # rn_maps_path = '../node_modules/react-native-maps' # pod 'react-native-google-maps', :path => rn_maps_path # pod 'GoogleMaps' # pod 'Google-Maps-iOS-Utils' target 'ConesseTests' do inherit! :search_paths # Pods for testing end use_native_modules! end # target 'Conesse-tvOS' do # # Pods for Conesse-tvOS # target 'Conesse-tvOSTests' do # inherit! :search_paths # # Pods for testing # end # end
# N/A
#### `AppDelegate.m`:
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "AppDelegate.h"
#import // N/A
Click To Expand
#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`:
// N/A
#### `android/app/build.gradle`:
// N/A
#### `android/settings.gradle`:
// N/A
#### `MainApplication.java`:
// N/A
#### `AndroidManifest.xml`:
<!-- N/A -->
Click To Expand
**`react-native info` output:**
OUTPUT GOES HERE
- **Platform that you're experiencing the issue on**:
- [x] iOS
- [ ] Android
- [x] **iOS** but have not tested behavior on Android
- [ ] **Android** but have not tested behavior on iOS
- [ ] Both
- **`react-native-firebase` version you're using that has this issue:**
- `e.g. 5.4.3`
- **`Firebase` module(s) you're using that has the issue:**
- `e.g. Instance ID`
- **Are you using `TypeScript`?**
- `Y/N` & `VERSION`
React Native Firebase and Invertase on Twitter for updates on the library.https://rnfirebase.io/messaging/usage#auto-registration-ios
Most helpful comment
https://rnfirebase.io/messaging/usage#auto-registration-ios