You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, first thanks so much for the amazing work you've been doing in all these libs for Godot! 👏
One question: do you have a clue on how to capture a message data in the app when the user clicks on it from the notifications bar?
Some context:
When I send push messages remotely and the app is closed or in background, the message goes to the device notifications bar. So far so good.
When the user clicks on this notification, it opens the app, but I'd like to capture this click somehow and react to it. But it doesn't trigger the _on_message_received function.
I tried setting the click_action argument in the message, but then it doesn't even open the app when the message is clicked from the notifications bar. It seems I'd need to set some sort of intent-filter, but after hours I could not figure this out.
The text was updated successfully, but these errors were encountered:
So, I managed to get the data from messages by calling localnotification.get_notification_data() from your other library (godot-local-notification).
I can call this function on _ready, see if there's new message data and act accordingly. But if the app was already opened, but in background, _ready won't be called.
Are you aware of any function which is called when the app is brought to foreground? If not, the alternative I thought was to keep checking new messages in _process.
Hey, first thanks so much for the amazing work you've been doing in all these libs for Godot! 👏
One question: do you have a clue on how to capture a message data in the app when the user clicks on it from the notifications bar?
Some context:
When I send push messages remotely and the app is closed or in background, the message goes to the device notifications bar. So far so good.
When the user clicks on this notification, it opens the app, but I'd like to capture this click somehow and react to it. But it doesn't trigger the
_on_message_received
function.I tried setting the
click_action
argument in the message, but then it doesn't even open the app when the message is clicked from the notifications bar. It seems I'd need to set some sort ofintent-filter
, but after hours I could not figure this out.The text was updated successfully, but these errors were encountered: