cbanks Active Member Licensed User Longtime User Nov 6, 2018 #1 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? Code: Copy Dim n As Notification n.Initialize n.Sound = False n.Vibrate = False n.Icon = "icon" n.SetInfo("Downloading Scriptures", "", "") n.Notify(1) Last edited: Nov 6, 2018
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? Code: Copy Dim n As Notification n.Initialize n.Sound = False n.Vibrate = False n.Icon = "icon" n.SetInfo("Downloading Scriptures", "", "") n.Notify(1)
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2018 #2 The exact behavior depends on the channel importance level. Use Notification.Initialize2(Notificaiton.IMPORTANCE_LOW) or MIN. For more control you need to use NB6. Upvote 0
The exact behavior depends on the channel importance level. Use Notification.Initialize2(Notificaiton.IMPORTANCE_LOW) or MIN. For more control you need to use NB6.
cbanks Active Member Licensed User Longtime User Nov 7, 2018 #3 Thank you! Changing n.Initialize to n.Initialize2(n.IMPORTANCE_LOW) did the trick. Upvote 0