Firebase cordova Notifications
See original GitHub issueTrying to set up the firebase notification service - i have migrated my service from Ionic 3 to my new ionic 4 project.
The only difference being that when I ran ‘npm install --save cordova-plugin-firebase’ it breaks my app giving this useless error in xcode:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PHTPhenotypeDatabase committedStateForSingleCommitPackage:version:user:error:]: unrecognized selector sent to instance 0x2807d9180' *** First throw call stack: (0x1d6b6fef8 0x1d5d3da40 0x1d6a87154 0x1d6b75810 0x1d6b774bc 0x1013c8774 0x1013da870 0x1013da450 0x1013da358 0x1024a7840 0x1024a8de4 0x1024b0e88 0x1024b1b7c 0x1024bbc18 0x1d678a0f0 0x1d678cd00) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
I did run ‘npx cap sync’ after and still no difference
Does the firebase cordova plugin not work with capacitor?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:19 (5 by maintainers)
Top GitHub Comments
The Firebase SDKs when served as .frameworks (as firebase plugin does) need
-ObjC
flag to work, otherwise it shows the[PHTPhenotypeDatabase committedStateForSingleCommitPackage:version:user:error:]: unrecognized selector sent
crash.Cordova has it by default, but for Capacitor you have to configure it like this.
But I don’t think all plugin features will work fine as the plugin does method swizzling and that usually doesn’t work well.
Experiencing the same issue