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
Description
Description of what the issue is about
Expected behavior
In killed/background mode App should receive "setBackgroundMessageHandler".
Current behavior
In killed/background mode App receiving notification but "setBackgroundMessageHandler" not calling.
Environment
React Native 0.71.3
Kit: @hmscore/react-native-hms-push": "6.7.0-300"
Device: Huawei p40
@ozcanozgur when send notification from pushkit console setBackgroundMessageHandler is called and notification is showing,
When we send notification using REST API setBackgroundMessageHandler is not called, But notification alone showing in notification tray.
Also notification not coming in foreground of the device.
But when application in foreground everything working as expected
Description
Description of what the issue is about
Expected behavior
In killed/background mode App should receive "setBackgroundMessageHandler".
Current behavior
In killed/background mode App receiving notification but "setBackgroundMessageHandler" not calling.
Environment
@ozcanozgur when send notification from pushkit console setBackgroundMessageHandler is called and notification is showing,
When we send notification using REST API setBackgroundMessageHandler is not called, But notification alone showing in notification tray.
Also notification not coming in foreground of the device.
But when application in foreground everything working as expected
Please find REST API Body:
{
"validate_only": false,
"message": {
"data": "{"title" : "test","body" : "This is Huawei Notification","image" : "https://www.image.com"}",
"android": {
"notification": {
"title": "Welcome",
"body": "This is Huawei Notification",
"image": "https://www.image.com/",
"click_action": {
"type": 3
},
"foreground_show": false
}
},
"token": [
"TOKEN"
]
}
}
The text was updated successfully, but these errors were encountered: