fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 998 forks source link

No known class method for selector 'setScreenName:screenClass:' #417

Open jevarg opened 6 years ago

jevarg commented 6 years ago

Hello ! I added cordova-plugin-fcm to my cordova plugins, then I tried running the application on an iOS device but I got this error: No known class method for selector 'setScreenName:screenClass:' My application is currently using Ionic 4.3

ggobea commented 6 years ago

I have the same problem.

TheAppchemist commented 6 years ago

Same problem here

robrecht-vanmelckebeke commented 6 years ago

Same problem after installing cordova-plugin-fcm

jevarg commented 6 years ago

I found out that my issue was that I was trying to use cordova-plugin-fcm and cordova-plugin-firebase at the same time.

ganiru commented 6 years ago

So how did you end up resolving it, @jeangravier? I'm experiencing the same issue. Thanks.

taegyunum commented 6 years ago

@ganiru

I also experienced same issue, as jeangravier mentioned, I had cordova-plugin-fcm and cordova-plugin-firebase at the same time.

After remove two plugins, and reinstall cordova-plugin-fcm solved my issue.

ionic cordova plugin remove cordova-plugin-firebase ionic cordova plugin remove cordova-plugin-fcm ionic cordova plugin add cordova-plugin-fcm

ganiru commented 6 years ago

Thanks, @taegyunum. Unfortunately, I needed both plugins (fcm for notifications, firebase for the database). If it was possible to do Firebase database transactions with fcm, that would've been ideal.

taegyunum commented 6 years ago

Hi, @ganiru,

I applyed fcm push service using cordova-plugin-firebase. I think you might not need to use both of it.

Using just firebase plugin would be okay.

When you apply FCM through firebase plugin, don't forget to use grantPermission() in iOS

ganiru commented 5 years ago

Hi @taegyunum , can you show me how you applied fcm push using cordova-plugin-firebase. I want to remove the FCM plugin from the project entirely and rely on cordova-plugin-firebase for both database manipulation and push notifications. I can't find any docs on it. Thanks.