You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
Android
iOS
Windows
Steps to reproduce
var status =awaitPermission.ignoreBatteryOptimizations.status;
if (status ==PermissionStatus.granted) {
returntrue;
} else {
status =awaitPermission.ignoreBatteryOptimizations.request();
if (status ==PermissionStatus.granted) {
returntrue;
} else {
returnfalse;
}
}
Expected results
reture true
Actual results
return false
Code sample
Code sample
var status =awaitPermission.ignoreBatteryOptimizations.status;
if (status ==PermissionStatus.granted) {
returntrue;
} else {
status =awaitPermission.ignoreBatteryOptimizations.request();
if (status ==PermissionStatus.granted) {
returntrue;
} else {
returnfalse;
}
}
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
11.3.1
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hans-CN)[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)[✓] Chrome - develop for the web[✓] Android Studio (version 2024.2)[✓] Connected device (6 available) ! Error: Browsing on the local area network for seventeen. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27)[✓] Network resources• No issues found!
The text was updated successfully, but these errors were encountered:
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
Expected results
reture true
Actual results
return false
Code sample
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
11.3.1
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: