I am using B4XPages in my current app, my question is how we can get the current page that is showing to user ( current page ) ???
in b4a we have isPause function and that was very useful.
I am using firebase messaging, I have this code in Main module :
B4X:
Private Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
if PageChat_Was_Current_Page then ' (if PageChat is current page then show this message in this page )
' show message in PageChat
else
log(Message)
end if
CompletionHandler.Complete
End Sub
in my case I cant pass the "Me" as parameter to FindPIFromB4XPage method because I want use this code in Main module . please have look to my code in post#1