Skip to content

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
Signed-off-by: MGasztold <michal.gasztold@ubudu.com>
Signed-off-by: MGasztold <michal.gasztold@ubudu.com>
Signed-off-by: MGasztold <michal.gasztold@ubudu.com>
Signed-off-by: MGasztold <michal.gasztold@ubudu.com>
@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.

3 participants