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
We have added the notification in mqtt for show the notification in notification bar but when we kill the app or logout the app the notification still showing in notification bar.
We have used below mentioned code. mqttClient!!.setForegroundService(notification.build(), notificationId)
And also used code for cancel notification val notificationManager = context getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager notificationManager.cancel(notificationId)
Can you please provide the solution for stop the foreground service.because
The text was updated successfully, but these errors were encountered:
We have added the notification in mqtt for show the notification in notification bar but when we kill the app or logout the app the notification still showing in notification bar.
We have used below mentioned code.
mqttClient!!.setForegroundService(notification.build(), notificationId)
And also used code for cancel notification
val notificationManager = context getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager notificationManager.cancel(notificationId)
Can you please provide the solution for stop the foreground service.because
The text was updated successfully, but these errors were encountered: