Android Question Notification click to specific page

tufanv

Expert
Licensed User
Longtime User
Hello,

If the app is open, I can open specific page at app, but if the app is on background and notification fires from the top, when the user clicks on the notifiation, app is open but I cant direct them to specific page.

Is it possible ? Am I missing sth there?

Tufan
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Check the attached project and note the code in Main.Activity_Resume

B4X:
Sub Activity_Resume
    B4XPages.Delegate.Activity_Resume
    Dim in As Intent = Activity.GetStartingIntent
    If in.IsInitialized And in.HasExtra("Notification_Tag") And in <> LastIntent Then
        LastIntent = in
        Dim tag As String = in.GetExtra("Notification_Tag")
        B4XPages.ShowPage("page" & tag)
    End If
End Sub
 

Attachments

  • Project.zip
    14.7 KB · Views: 159
Upvote 0
Top