-
Notifications
You must be signed in to change notification settings - Fork 1k
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
I did my own fork to fix moveToBackground on Android #576
Comments
I also had to fix a bug in recent Android releases. for pendingintents you need to have a FLAG_MUTABLE or the opposite. So I had to edit ForeGroundService.java adding | PendingIntet.FLAG_MUTABLE as shown below on line 225.
|
The way it is written it goes to the home screen. I wanted to go back to whatever the previous foreground app was. Took hours but I found it. I recommend whomever is maintaining this plugin to adopt this code instead.
private void moveToBackground() { Activity app = getApp(); app.moveTaskToBack(true); }
The text was updated successfully, but these errors were encountered: