Getting the below error after adding cordova-plugin-fcm, am i missing anything ?
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:9: warning: 'UIRemoteNotificationType' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);
^
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:67:32: note: 'UIRemoteNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIRemoteNotificationType) {
^
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:58: warning: 'UIRemoteNotificationTypeSound' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);
^
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:70:5: note: 'UIRemoteNotificationTypeSound' has been explicitly marked deprecated here
UIRemoteNotificationTypeSound = 1 << 1,
^
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:90: warning: 'UIRemoteNotificationTypeAlert' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);
^
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:71:5: note: 'UIRemoteNotificationTypeAlert' has been explicitly marked deprecated here
UIRemoteNotificationTypeAlert = 1 << 2,
^
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:122: warning: 'UIRemoteNotificationTypeBadge' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);
^
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:69:5: note: 'UIRemoteNotificationTypeBadge' has been explicitly marked deprecated here
UIRemoteNotificationTypeBadge = 1 << 0,
^
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:37:22: warning: 'registerForRemoteNotificationTypes:' is deprecated: first deprecated in iOS 8.0 - Please use registerForRemoteNotifications and registerUserNotificationSettings: instead [-Wdeprecated-declarations]
[application registerForRemoteNotificationTypes:allNotificationTypes];
^
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190:1: note: 'registerForRemoteNotificationTypes:' has been explicitly marked deprecated here
(void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types NS_DEPRECATED_IOS(3_0, 8_0, "Please use registerForRemoteNotifications and registerUserNotificationSettings: instead") __TVOS_PROHIBITED;
^
Need to update AppDelegate+FCMPlugin.h file to include IOS 10. Just did a fork and pull request. You can try copying the example in FIrebase documentation . Will need to import UserNotifications framework as well.
Getting the below error after adding cordova-plugin-fcm, am i missing anything ?
/Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:9: warning: 'UIRemoteNotificationType' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations] UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge); ^ In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:67:32: note: 'UIRemoteNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIRemoteNotificationType) { ^ /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:58: warning: 'UIRemoteNotificationTypeSound' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations] UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge); ^ In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:70:5: note: 'UIRemoteNotificationTypeSound' has been explicitly marked deprecated here UIRemoteNotificationTypeSound = 1 << 1, ^ /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:90: warning: 'UIRemoteNotificationTypeAlert' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations] UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge); ^ In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:71:5: note: 'UIRemoteNotificationTypeAlert' has been explicitly marked deprecated here UIRemoteNotificationTypeAlert = 1 << 2, ^ /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:36:122: warning: 'UIRemoteNotificationTypeBadge' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations] UIRemoteNotificationType allNotificationTypes = (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);
In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:69:5: note: 'UIRemoteNotificationTypeBadge' has been explicitly marked deprecated here UIRemoteNotificationTypeBadge = 1 << 0, ^ /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/NomineeApp/Plugins/cordova-plugin-fcm/AppDelegate+FCMPlugin.m:37:22: warning: 'registerForRemoteNotificationTypes:' is deprecated: first deprecated in iOS 8.0 - Please use registerForRemoteNotifications and registerUserNotificationSettings: instead [-Wdeprecated-declarations] [application registerForRemoteNotificationTypes:allNotificationTypes]; ^ In module 'UIKit' imported from /Users/eswarankaruppiah/Project/nomineemui/platforms/ios/build/emulator/include/Cordova/CDVViewController.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:190:1: note: 'registerForRemoteNotificationTypes:' has been explicitly marked deprecated here