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

Fixed notifications not displayed when the app is in background state #115

Merged
merged 2 commits into from
Nov 26, 2018

Conversation

Jei
Copy link
Contributor

@Jei Jei commented Nov 8, 2018

Android 26 introduced radical changes to the way services are handled. The details are in the official page here: https://developer.android.com/about/versions/oreo/background#services
The result is that Ti.Goosh currently throws a java.lang.IllegalStateException whenever a notification is received while the app is closed or considered as "in background" by the system.
I solved this problem by starting our IntentService class through JobScheduler.

Solves #114 and #109

@Jei Jei requested review from kopiro and progress44 November 8, 2018 09:45
@Jei
Copy link
Contributor Author

Jei commented Nov 9, 2018

@Jei @kopiro

@Jei Jei merged commit 6e33ba9 into master Nov 26, 2018
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

Successfully merging this pull request may close these issues.

1 participant