cordova-plugin-firebase: Error The object does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:.
My environnement:
$ cordova plugins ls
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebase 1.0.5 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ios-longpress-fix 1.1.0 "iOS LongPress Fix"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
Running on iPhone X: iOS 12.0 beta public Xcode 10 beta 4
When I start the app have this error in Xcode:
2018-07-30 17:52:43.953486+0200 MyApp[9984:2066689] 4.13.0 - [Firebase/Messaging][I-FCM002023] The object <FirebasePlugin: 0x2829279d0> does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.
I can’t push any notification…
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (3 by maintainers)
@christianguevara thanks for pointing me in the right direction. It’s working now - it was my bad (partially at least). My issues was that I was building the iOS build using this command
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
and then running is on device using XCODE. This was messing the build and I ended up having the issue.
anyway thanks for the help and the plugin 👍