Hi everyone,
I have a problem with notification tag.
In Sub button1_Click I create the notification using the NotificationBuilder library
And in the Activity_Resume of Main1 I have
but intentExtra is always empty..
WHY??
Thanks to all!
I have a problem with notification tag.
In Sub button1_Click I create the notification using the NotificationBuilder library
B4X:
Dim n As NotificationBuilder
n.Initialize
n.LargeIcon=LoadBitmap(File.DirAssets,"icon2.png")
n.AddAction("icon","title","test",Main1)
n.setParentActivity(Main)
n.AutoCancel=True
n.setActivity(Main1)
n.Tag="ciao"
n.SmallIcon="icon"
n.OnGoingEvent=True
n.Notify(1)
And in the Activity_Resume of Main1 I have
B4X:
Dim In As Intent
Dim intentExtra As String
In = Activity.GetStartingIntent
If In.HasExtra("Notification_Tag") Then
intentExtra = In.GetExtra("Notification_Tag")
End If
Log(intentExtra)
but intentExtra is always empty..
WHY??
Thanks to all!