I have created a notification with a button. The notification will be triggered based on a schedule when the application is asleep. If I click anywhere and the notification the application will be triggered. That's fine. But how to launch the application when I click the button?
B4X:
Dim n As NB6
n.Initialize("default", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(smiley)
n.AddButtonAction(smiley, "Open app", MyReceiver, "open")
MyReceiver:
....
If StartingIntent.Action = "open" Then
???
ntf.Cancel(4)
End If
....