M m643 Member Licensed User Longtime User Jun 23, 2013 #1 Hi all, I have the following notification: Code: Copy myNotification.SetInfo2("Welcome", "Welcome", "tagtest", "Main") When the notification is fired and the user clicks on it, it needs to run an activity. So I read in the documention to use the following code in the activity resume: Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("tagtest") Then Log(in.GetExtra("tagtest")) 'Will log the tag End If The problem is that it doesn't do anything. Do I something wrong?
Hi all, I have the following notification: Code: Copy myNotification.SetInfo2("Welcome", "Welcome", "tagtest", "Main") When the notification is fired and the user clicks on it, it needs to run an activity. So I read in the documention to use the following code in the activity resume: Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("tagtest") Then Log(in.GetExtra("tagtest")) 'Will log the tag End If The problem is that it doesn't do anything. Do I something wrong?
barx Well-Known Member Licensed User Longtime User Jun 23, 2013 #2 The extra will be called 'Notification_Tag' and contain the value 'tagtest'. So use this code Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) 'Will log the tag End If tagtest should be logged Upvote 0
The extra will be called 'Notification_Tag' and contain the value 'tagtest'. So use this code Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) 'Will log the tag End If tagtest should be logged
M m643 Member Licensed User Longtime User Jun 23, 2013 #3 barx said: The extra will be called 'Notification_Tag' and contain the value 'tagtest'. So use this code Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) 'Will log the tag End If tagtest should be logged Click to expand... Thank you very much! Upvote 0
barx said: The extra will be called 'Notification_Tag' and contain the value 'tagtest'. So use this code Code: Copy Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) 'Will log the tag End If tagtest should be logged Click to expand... Thank you very much!