Hi guys,
I am using the NB6 class for notifications and I have one doubt. I am coding the app to let the user to choose if some notified conditions do sound and or vibration (both configurable).
the sub I call to create the notification is:
the notification itself works fine and but regardless what I set with the SetDefaults method, I can only influence the sound and the vibration by setting the notification as "LOW" (no sound, no vibration) or "DEFAULT" (in that case I get sound AND vibration) again regardless the SetDefaults.
I am sure I am doing something wrong.
Can you help?
thanks!!!
I am using the NB6 class for notifications and I have one doubt. I am coding the app to let the user to choose if some notified conditions do sound and or vibration (both configurable).
the sub I call to create the notification is:
B4X:
Sub Simple_Notification2(sound As Boolean,vibrate As Boolean,NotificationText As String)
Dim n As NB6
n.Initialize("default", Application.LabelName, "LOW").SmallIcon(EventPic)
Dim cs As CSBuilder
n.SetDefaults(sound,False,vibrate)
n.BigTextStyle("Alert", cs.Initialize.BackgroundColor(Colors.White).Append("Active alerts...").PopAll, NotificationText)
n.Build("Alert", "New event(s). Click for details", "EventNotification", Main).Notify(1)
'Notification1.Notify(1)
End Sub
the notification itself works fine and but regardless what I set with the SetDefaults method, I can only influence the sound and the vibration by setting the notification as "LOW" (no sound, no vibration) or "DEFAULT" (in that case I get sound AND vibration) again regardless the SetDefaults.
I am sure I am doing something wrong.
Can you help?
thanks!!!