Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected a type UNNotificationInterruptionLevel #402

Open
jonatasnardi opened this issue Apr 11, 2023 · 2 comments
Open

Expected a type UNNotificationInterruptionLevel #402

jonatasnardi opened this issue Apr 11, 2023 · 2 comments

Comments

@jonatasnardi
Copy link

jonatasnardi commented Apr 11, 2023

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
Copy link

Same issue, waiting for help

@gabeaugusto
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants