You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use this lib instead this one: https://github.com/eclipse/paho.mqtt.android
because I had the Targeting S+ (version 10000 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. error.
In here I saw that it is needed to add this line for android O devices:
val client = MqttAndroidClient(context, uri, clientId).apply {
setForegroundService(foregroundNotification, 3)
}
why is this needed? what is the foregraound service means and do I need to do any other refactroing to my code except for this?
what is the foregroundNotification variable? I don't use anything like it curently
thanks!
The text was updated successfully, but these errors were encountered:
I don't mind use it as a foregroun service if it's needed
but I currently don't know what to put inside this foregroundNotification since I don't use it in my app.
what should I put inside of it or can I just put null?
Hello
I want to use this lib instead this one:
https://github.com/eclipse/paho.mqtt.android
because I had the
Targeting S+ (version 10000 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
error.In here I saw that it is needed to add this line for android O devices:
foregroundNotification
variable? I don't use anything like it curentlythanks!
The text was updated successfully, but these errors were encountered: