react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
753 stars 288 forks source link

Expected a type UNNotificationInterruptionLevel #402

Open jonatasnardi opened 1 year ago

jonatasnardi commented 1 year ago

Hello, I'm using React Native 0.60.4 and after last lib release, I'm receiving this error after run pod install and run my iOS project.

image
@interface RCTConvert (UNNotificationInterruptionLevel)
+ (UNNotificationInterruptionLevel)UNNotificationInterruptionLevel:(id)json API_AVAILABLE(ios(15.0));
@end

If I install @react-native-community/push-notification-ios v1.10.1, my application works well.

I have no idea of how to deal with this error. Can someone help me?

XCode 12.4 React Native 0.60.4 @react-native-community/push-notification-ios v1.11.0

hienhodeveloper commented 1 year ago

Same issue, waiting for help

gabeaugusto commented 1 year ago

This should be happening because of the iOS version of your simulator. UNNotificationInterruptionLevel is available for iOS 15.0+.

Try to update your Xcode to get iOS new versions.