Android Question B4A v8.00 Notification sound

Pendrush

Well-Known Member
Licensed User
Longtime User
B4X:
notif.Initialize
notif.OnGoingEvent = True
notif.Sound = False '<- this line was ignored
notif.Light = False
notif.Vibrate = False
notif.AutoCancel = False
notif.Icon = "icona"
notif.SetInfo("Test", "Test", Main)
notif.Notify(1)
Service.StartForeground(1, notif)

This code generate sound when notification is shown from service in B4A v8.00
There is no sound, as it should, in B4A v7.80.
Line: notif.Sound = False is completely ignored on Android 8.1 device and B4A v8.00.
Manifest: targetSdkVersion="25"

How to show notification without sound?

EDIT:
B4X:
notif.Initialize2(notif.IMPORTANCE_LOW)
Will make sound go off, but still is this normal behavior?
 
Last edited:
Top