We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa9f7e commit 5e2d44cCopy full SHA for 5e2d44c
1 file changed
packages/battery_plus/battery_plus/ios/battery_plus/Sources/battery_plus/FPPBatteryPlusPlugin.m
@@ -114,6 +114,7 @@ - (FlutterError *)onListenWithArguments:(id)arguments
114
115
- (FlutterError *)onCancelWithArguments:(id)arguments {
116
[[NSNotificationCenter defaultCenter] removeObserver:self];
117
+ [[UIDevice currentDevice] setBatteryMonitoringEnabled:NO];
118
_eventSink = nil;
119
return nil;
120
}
0 commit comments