Private Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
B4XPages.ShowPageAndRemovePreviousPages("b4xp_main") 'shows the main page and close the previous page, if open
B4XPages.ShowPage("b4xp_notifications") 'Now i open the notification page
'if i now close the notification page, then i'm on the Main page again
CompletionHandler.Complete 'and i call this on the end of this sub
End Sub