Android Question Notificatons Vibrate on Android 8.0

cbanks

Active Member
Licensed User
Longtime User
I have the following code in my app. On Android 7.0 and below there is no vibrate. But on my Android 8.0 phone every time this is called my phone vibrates even though vibrate is set to false. Why is that?

B4X:
     Dim n As Notification
                n.Initialize
                n.Sound = False
                n.Vibrate = False
                n.Icon = "icon"
                n.SetInfo("Downloading Scriptures", "", "")
                n.Notify(1)
 
Last edited:

cbanks

Active Member
Licensed User
Longtime User
Thank you!

Changing n.Initialize to n.Initialize2(n.IMPORTANCE_LOW) did the trick.
 
Upvote 0
Top