Android Question Possible to understand if user coming from notification ?

tufanv

Expert
Licensed User
Longtime User
Hello,

Is it possible to understand if the user is coming from clicking the notification to the app ?

Thanks
 

KMatle

Expert
Licensed User
Longtime User
B4X:
Sub Activity_Resume
    
    Dim in As Intent
    in = Activity.GetStartingIntent
    If in.HasExtra("Notification_Tag") Then
        Log(in.GetExtra("Notification_Tag")) 'Will log the tag
        MsgboxAsync("App was started from notification","FCM")
    End If

End Sub
 
Upvote 0
Top