Hi, I would like to know if is possible disable notification from my app without open notification settings.
I'm using the code below to check if it is on or off, any idea?
I'm using the code below to check if it is on or off, any idea?
B4X:
Sub AreNotificationsEnabled As Boolean
Dim jo As JavaObject
Dim ctxt As JavaObject
ctxt.InitializeContext
jo = jo.InitializeStatic("android.support.v4.app.NotificationManagerCompat").RunMethod("from", Array(ctxt))
Return jo.RunMethod("areNotificationsEnabled", Null)
End Sub