I am using the B4A FirebaseNotifications Library with the sample B4A code found in this thread: FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM)
This works extremely well, and it notifies the user even when the app is paused, or not running. The user gets the Notification pop up and when they click on that notification message, the app opens to the foreground nicely.
What I'd like to know is this:- Is it possible to open the app automatically even when the Main activity is paused - without having to click on the notification message?
I tried calling and passing the notification data payload to my message handler sub "MessageReceived" within the Main Activity:
but it just returns a queuing message in the debug log:
I am using B4A 10.7 and FirebaseNotifications Library 2.00
Many thanks,
Ralph
This works extremely well, and it notifies the user even when the app is paused, or not running. The user gets the Notification pop up and when they click on that notification message, the app opens to the foreground nicely.
What I'd like to know is this:- Is it possible to open the app automatically even when the Main activity is paused - without having to click on the notification message?
I tried calling and passing the notification data payload to my message handler sub "MessageReceived" within the Main Activity:
B4X:
CallSubDelayed3(Main, "MessageReceived", Message.GetData.Get("TxTopic"), Message.GetData.Get("Payload"))
but it just returns a queuing message in the debug log:
B4X:
sending message to waiting queue of uninitialized activity (messagereceived)
I am using B4A 10.7 and FirebaseNotifications Library 2.00
Many thanks,
Ralph