-
Notifications
You must be signed in to change notification settings - Fork 124
how to prevent android from kill my app #33
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
Comments
Dev-hwang any help please! |
I don't think it's advisable to use this plugin to implement audio apps. This plugin simply provides the ability to perform repetitive tasks in the background. Notifications should also be implemented for audio and music players. Why not try implementing your app using the just_audio plugin? |
@Dev-hwang |
It seems that you need to figure out exactly why the app is shutting down through debugging. You will have to check if the plugin is crashing while running or if the Android system is blocking the app. The notification could not be removed. To start the foreground service according to the Android platform's policy, must create a notification. |
It doesn't seem to have anything to do with the audio app, but it's a good reference. https://developer.android.com/training/monitoring-device-state/doze-standby |
thanks for your help |
Uh oh!
There was an error while loading. Please reload this page.
i have audio app its job play audio in background and when screen look.
i have one problem that android os kill my app after 1hour or less .
now i used you package from prevent os from kill app but still kill it.
and when on lock screen didn't go to next track until open screen
my code
and add WithForegroundTask like that
all i want to prevent android from kill my app
The text was updated successfully, but these errors were encountered: