Hi guys,
I am starting using the notification object but I am facing a probably trivial issue.
I have started from some examples posted in the forum and the notifications appear fine but form some reasons the vibration and the sound won't work..
the sub is called by a timer and every 10 seconds it is called with "soud" = True and I would expect it to sound and vibrate but it does not.
I made sure the Setinfo is called just before the Notify...any idea?
Any idea?
I am starting using the notification object but I am facing a probably trivial issue.
I have started from some examples posted in the forum and the notifications appear fine but form some reasons the vibration and the sound won't work..
B4X:
Private Sub UpdateNotification(sound As Boolean)
Dim icon As String
Dim content As String
If ConnectedStatus Then
icon = "connected"
content = "connected"
Else
icon = "disconnected"
content = "disconnected"
End If
Notification1.Initialize2(Notification1.IMPORTANCE_LOW)
Notification1.Sound = sound
Notification1.Vibrate = sound
Notification1.Icon = icon
Notification1.SetInfo("test1:" & InternalNum, content, Main)
Notification1.Notify(1)
End Sub
I made sure the Setinfo is called just before the Notify...any idea?
Any idea?