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

Background service stopping #1

Open
viniciusdepaula opened this issue Oct 21, 2017 · 1 comment
Open

Background service stopping #1

viniciusdepaula opened this issue Oct 21, 2017 · 1 comment

Comments

@viniciusdepaula
Copy link

Hello Buddy,

the background service was being stopped when the app is closed on Android 5.

Best Regards,
Vinicius

@jayakrishnan-pm
Copy link
Owner

Because both are in the same thread so the O.S will kill it when you kill the app from memory. A solution is to either start the service from another thread using Alarmanager or start service in foreground like music player. I have not tried both yet though. Good luck!

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

2 participants