System info
Issue occurs on: iOS / Android / both
Plugin name: android_alarm_manager_plus
Plugin version: 1.2.0
Flutter doctor output:
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5.2 20G95 darwin-x64, locale en)
• Flutter version 2.5.1 at /Users/squall/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffb2ecea52 (2 weeks ago), 2021-09-17 15:26:33 -0400
• Engine revision b3af521a05
• Dart version 2.14.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/squall/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Users/squall/Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.0, Build version 13A233
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Users/squall/Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 49.0.4
• Dart plugin version 202.6397.47
[✓] VS Code (version 1.57.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.23.0
[✓] Connected device (3 available)
• Pixel 5 (mobile) • 192.168.0.170:39889 • android-arm64 • Android 12 (API 31)
• iPhone 11 (Dmitry) (mobile) • 00008030-000D58100191402E • ios • iOS 15.0 19A346
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.61
! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
• No issues found!
Steps to Reproduce
- Put 31 version into android\app\build.gradle
- compileSdkVersion 31
- targetSdkVersion 31
Logs
[ +378 ms] E/AndroidRuntime(25365): FATAL EXCEPTION: pool-3-thread-1
[ ] E/AndroidRuntime(25365): Process: com.example.android12test, PID: 25365
[ ] E/AndroidRuntime(25365): java.lang.IllegalArgumentException: com.example.android12test: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
[ ] E/AndroidRuntime(25365): Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
Looks like PendingIntent should use FLAG_MUTABLE or FLAG_IMMUTABLE in android_alarm_manager_plus
System info
Issue occurs on: iOS / Android / both
Plugin name: android_alarm_manager_plus
Plugin version: 1.2.0
Flutter doctor output:
Steps to Reproduce
Logs
Looks like PendingIntent should use FLAG_MUTABLE or FLAG_IMMUTABLE in android_alarm_manager_plus