Android Question Clicking on the notification and running the service

miling

Member
I wrote this code in Receiver module in fm_MessageArrived function

B4X:
    Dim n2 As Notification
    n2.Initialize2(n2.IMPORTANCE_DEFAULT)
    n2.Icon = "icon"
    n2.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Notif)
    n2.Notify(1)


But when I click on the notification, instead of the Notif activity, my first activity comes up and the notification commands do not work properly.
But when the application is up and I click on the notification, the Notif activity comes up....
what is the problem?
 
Upvote 0
Top