-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Android 8+] Crash when the app is in background #45
Comments
same problem:
you should create another file to replace this file using : postinstall: cp BoundaryEventJobIntentService.java /node_modules/... Workarround: https://stackoverflow.com/questions/44425584/context-startforegroundservice-did-not-then-call-service-startforeground |
With the fork: https://github.com/woffu/react-native-boundary |
Any news on this topic? Will the PR be merged? |
Hey @woffu. Your fix worked fine for me. Thanks a lot! But I still have issues with the Headless event. It seems like my callback is registered AFTER the Headless event is fired. I tried to explain it more in #55. |
Hi @eddieowens,
In Android 8 and up it's not possible to start services when your app is in background. Proof
If you try to do so, you get an error. Here is a log with stack trace:
So the cause is this line.
Is this something we might hope to get fixed? And what would be ETA?
Thanks.
EDIT:
targetSdkVersion should be 26 or higher
The text was updated successfully, but these errors were encountered: