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

Battery optimization does not work consistently. #4

Open
saravananmnm opened this issue Apr 5, 2022 · 3 comments
Open

Battery optimization does not work consistently. #4

saravananmnm opened this issue Apr 5, 2022 · 3 comments

Comments

@saravananmnm
Copy link

I have installed optimize_battery: ^0.0.4 plugin in android OS 10,11 and 12.
battery optimization gets enabled after 2 hours or so in all the above OS.
Any suggestion for resolving the problem is highly appreciated.

@Bhat015
Copy link
Owner

Bhat015 commented Apr 7, 2022

Sounds strange.
Are you reinstalling the app? this will cause the reset of optimization settings for the app.

@saravananmnm
Copy link
Author

/MethodChannel#optimize_battery(26375): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#optimize_battery(26375): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(:164)
E/MethodChannel#optimize_battery(26375): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.notImplemented(:248)
E/MethodChannel#optimize_battery(26375): at c.c.a.a.onMethodCall(:66)
E/MethodChannel#optimize_battery(26375): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(:233)
E/MethodChannel#optimize_battery(26375): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(:84)
E/MethodChannel#optimize_battery(26375): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(:865)
E/MethodChannel#optimize_battery(26375): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#optimize_battery(26375): at android.os.MessageQueue.next(MessageQueue.java:335)
E/MethodChannel#optimize_battery(26375): at android.os.Looper.loop(Looper.java:183)
E/MethodChannel#optimize_battery(26375): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/MethodChannel#optimize_battery(26375): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#optimize_battery(26375): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/MethodChannel#optimize_battery(26375): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/DartMessenger(26375): Uncaught exception in binary message listener
E/DartMessenger(26375): java.lang.IllegalStateException: Reply already submitted
E/DartMessenger(26375): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(:164)
E/DartMessenger(26375): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(:253)
E/DartMessenger(26375): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(:84)
E/DartMessenger(26375): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(:865)
E/DartMessenger(26375): at android.os.MessageQueue.nativePollOnce(Native Method)
E/DartMessenger(26375): at android.os.MessageQueue.next(MessageQueue.java:335)
E/DartMessenger(26375): at android.os.Looper.loop(Looper.java:183)
E/DartMessenger(26375): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/DartMessenger(26375): at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(26375): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/DartMessenger(26375): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

@ghadeerAbdulmajeed
Copy link

hello i've got this error No implementation found for method isIgnoringBatteryOptimizations on channel optimize_battery)
any thoughts ?

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