Android Question NB6 Vibrate OFF on HIGH

AHilberink

Active Member
Licensed User
Longtime User
Hi,

I cannot make it work to disable Vibrate on Notification High.
I use:
B4X:
nb.SetDefaults(False,False,False)

Is this possible?

BR, André
 

AHilberink

Active Member
Licensed User
Longtime User
Try to change the ChannelId in the Initialize method.

Thanks Erel,

This works, but once set to False, it seems not be able to change to True. Only changing the channelid will do.

I changed my code to:
B4X:
    If(Lamp And Trillen) Then
        nb.Initialize("chauffeurlt", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon)
    Else If(Lamp) Then
        nb.Initialize("chauffeurl", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon)
    Else If(Trillen) Then
        nb.Initialize("chauffeurt", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon)
    Else
        nb.Initialize("chauffeur", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon)
    End If
    nb.SetDefaults(False,Lamp,Trillen)

And it works fine.

BR, André
 
Upvote 0
Top