-
-
Notifications
You must be signed in to change notification settings - Fork 122
Description
First of all, thanks for the library, it's quite good.
However, I'm using this library since a few months, and it has caused me some headaches with the newest version of Android 14. This is because of the issue of foreground services.
I've looked at the code of the library, and it seems you start the service manually, putting it in on foreground when there is a notification, however it's not clear to me why, as you immediately bind the client to the service. From the documentation on bound services, it seems that calling bindService is enough on its own to start the service.
I'm only asking because for my app, I just need a background way to connect to an MQTT server, and only download data when the user is using the app. Maybe using a foreground service is too much, and by removing the need to call startService or startForeground, all the library could be simplified.