2017-09-08 19 views
0

私のionic 2アプリケーションでfirebaseプッシュ通知を実装しようとしています。 fcmプラグイン "cordova-plugin-fcm"を追加しました。それから、私は次のエラーを受け取りました。ionic ios appのエラーのFCMプラグイン:セレクタの既知のクラスメソッドがありません。setScreenName:screenClass: '

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

このエラーはFirebasePlugin.mファイルで発生しました。

- (void)setScreenName:(CDVInvokedUrlCommand *)command { 
    NSString* name = [command.arguments objectAtIndex:0]; 

    [FIRAnalytics setScreenName:name screenClass:NULL]; # 

    CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; 
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; 
} 

この問題を解決する方法については、アドバイスをお願いいたします。ありがとう!

答えて

0

アップルデベロッパーの証明書の設定の冒頭から、詳細な手順を追ってthis tutorialを詳細に確認することができます。

+0

ご意見ありがとうございますが、このチュートリアルでは他のエラーがあります。 int retVal = UIApplicationMain(argc、argv、nil、@ "AppDelegate"); #Thread 1:signal SIGABRT この意味は分かりますか? –

関連する問題