I'm using the sample code as provided in the doc to see how notifications work.
It seems that Vibrate is set to TRUE by default - and when I run the sample code I get an error on the n.notify(1) statement:
Where do I set / obtain this permission?
(as might be expected, if I set Vibrate to FALSE the app runs fine)
It seems that Vibrate is set to TRUE by default - and when I run the sample code I get an error on the n.notify(1) statement:
java.lang.SecurityException: Requires VIBRATE permission
Where do I set / obtain this permission?
(as might be expected, if I set Vibrate to FALSE the app runs fine)
B4X:
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.SetInfo("This is the title", "and this is the body.", "")
n.Notify(1)