This will be possible in v1.8.
There is a new SetInfo2 method that adds a "tag" parameter. You can later retrieve this value in Activity_Resume (after the user clicks on the notification):
B4X:
Sub Activity_Resume
Dim in As Intent
in = Activity.GetStartingIntent
If in.HasExtra("Notification_Tag") Then
Log(in.GetExtra("Notification_Tag"))
End If
End Sub
Is it possible to remove/delete the intent in Activity_Resume?
Otherwise, the code will be executed everytime in Activity_Resume (f.i if you turn the phone)
You can store the intent object as a global variable. Then in Activity_Resume test whether GetStartingIntent = storedIntent.
If yes then you know that this intent should be ignored.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.