JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
85 stars 45 forks source link

remove initialize message #48

Closed AbanoubWagih94 closed 2 years ago

AbanoubWagih94 commented 2 years ago

how to remove initialize message appear one app install at first time

JulianAssmann commented 2 years ago

Sorry, I don't quite understand your question. Do you only want the message to appear on the first app launch after installation?

AbanoubWagih94 commented 2 years ago

@JulianAssmann no i don't want the message ignore battery optimizations appear

JulianAssmann commented 2 years ago

That isn't possible, because the OS requires the user to give permission to the app.

AbanoubWagih94 commented 2 years ago

if i remove battery optimization from manifest will cause any problem ?!

JulianAssmann commented 2 years ago

Yes. The Android OS will not allow any background execution without letting the user know about it, which is perfectly understandable from my POV.

AbanoubWagih94 commented 2 years ago

@JulianAssmann there is any way to ignore asking about battery optimization ?! i don't want to use this permission i only need to FlutterBackground.enableBackgroundExecution()