Android Question Disable Notification Vibrate On Foreground Service

Rasoull

Member
Hi,
I used the following code to always display the date and service not closing in my calendar app

B4X:
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS '

And the following code is for displaying date notifications

B4X:
    If Helper.GetSdkVersion >= 26 Then
        
            n.Initialize("default","", "LOW").AutoCancel(False).LargeIcon(icon1).SmallIcon(icon2).OnlyAlertOnce(True).Colorized(True).Color(bgcol).SetDefaults(False,False,False)
            
        Else       
            n.Initialize("default","", "LOW").AutoCancel(False).LargeIcon(icon1).SmallIcon(icon2).OnlyAlertOnce(True).Color(bgcol).SetDefaults(False,False,False)
        End If
        notf = n.Build(title,Content, "tag1", Main)
        Service.StartForeground(1,notf)

But sometimes changing the date is accompanied by vibration, but I have turned off the vibration.


Can anyone tell me how to turn off the notification vibrate?
 
Top