-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cannot find 'UNNotificationInterruptionLevel' in scope #1722
Comments
I believe this is because of the version of Xcode you're using. The API the code is referring to is in OS versions that are newer than the Xcode version you have. See https://developer.apple.com/documentation/usernotifications/unnotificationinterruptionlevel |
Hi, but the error is in this code:
Inside an IF that check if there is the availability of macOS12. Is not this strange ? So, you say me that I can use your plugin only if I have +macOS12 ? And will my app only be usable only on +macos12 ? |
I know what you're saying and note I'm don't follow the Apple development ecosystem as closely, however this is the only explanation I can think of given that there's already meant to be a guard in there like you pointed out. Furthermore the example app referencing code compiles on build servers hosted by others |
Closing this as there's not much more advice I can give. Should clarify that one I wrote above is more about the version of Xcode used compile the app. It isn't about the version of macOS though XCode will have requirements on the macOS versions it's compatible with. This is to do with requirements enforced by Apple than the plugin The plugin should still work on macOS versions older than 12. I assume the issue is because if you use an older version of XCode then it won't know about APIs added later on given the SDKs bundled with it. |
Describe the bug
The main.dart example on pub.dev does not works with these error:
To Reproduce
My system
Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f1875d570e (3 months ago) • 2022-07-13 11:24:16 -0700
Engine • revision e85ea0e79c
Tools • Dart 2.17.6 • DevTools 2.12.2
osx 11.6.1
xcode Version 12.5.1
The text was updated successfully, but these errors were encountered: