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

Feature/foreground service #7

Merged
merged 5 commits into from
Nov 14, 2020
Merged

Feature/foreground service #7

merged 5 commits into from
Nov 14, 2020

Conversation

hannesa2
Copy link
Owner

@hannesa2 hannesa2 commented Nov 14, 2020

eclipse-paho/paho.mqtt.android#418

This pull requests solves issues with Android versions >=8 in which service is killed by OS when app is in background or after screen is turned off. The price to pay for this is the notification that has to be permanently visible in the app's status bar.

The API I proposed let's developer start MQTT service as foreground service and provide its own Notification object. In the same time it is totally optional.

I also got rid of legacy support library dependency in favor of latest androidx dependency.

This pull requests tries to solve the following issues:
#416 #332 #281 #274 #226

@hannesa2 hannesa2 changed the title Feature/foreground sservice Feature/foreground service Nov 14, 2020
@hannesa2 hannesa2 force-pushed the feature/foregroundSservice branch from 5f4fdc5 to 7162bb2 Compare November 14, 2020 21:22
@hannesa2 hannesa2 force-pushed the feature/foregroundSservice branch from 7162bb2 to 902fb6d Compare November 14, 2020 21:31
@hannesa2 hannesa2 merged commit 6fede14 into master Nov 14, 2020
@hannesa2 hannesa2 deleted the feature/foregroundSservice branch November 14, 2020 21:45
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.

2 participants