cordova-plugin-fcm-with-dependecy-updated
cordova-plugin-fcm-with-dependecy-updated copied to clipboard
Ionic build failed with the above plugin
Error:
/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:240:80: error: expected a type
- (void)messaging:(nonnull FIRMessaging *)messaging didReceiveMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:257:101: error: nullability specifier 'nonnull' conflicts with existing specifier 'nullable'
- (void)messaging:(nonnull FIRMessaging *)messaging didReceiveRegistrationToken:(nonnull NSString *)deviceToken {
^
/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:242:58: error: property
'messageID' not found on object of type '__strong id'
NSLog(@"Firebase data message ID: %@", remoteMessage.messageID);
^
/Users/proj/beetexting-mobile-ionic/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:245:32: error: property
'appData' not found on object of type '__strong id'
NSLog(@"%@", remoteMessage.appData);
^
/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:276:31: error: no visible
@interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:'
[[FIRMessaging messaging] setShouldEstablishDirectChannel:NO];
/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:278:31: error: no visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' [[FIRMessaging messaging] setShouldEstablishDirectChannel:YES]; ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:296:31: error: no visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' [[FIRMessaging messaging] setShouldEstablishDirectChannel:NO]; ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 errors generated.
ionic version: 5.4.2 cordova version: 9.0.0 cocoapods version: 1.10.1 xcode version: 12.3 macOS: macOS Big Sur
Please do the needful.
try
pod repo update
before add platform ios
then add platform and
ionic cordova prepare ios
finally build
@RidClick Thanks. Will try and update
@RidClick No luck. Did the same as suggested but still the same error.
Any update on this ?
hello, any update?