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
I am using your example send_notify_message.js file from HUAWEI Push Kit(NodeJs). I get a success message in NodeJs log.
{
code: '80000000',
msg: 'Success',
requestId: '160213898154027353000507'
}
I can see Notification appears at top of the mobile but somehow we are not able to see into our Android log.
Normally any notification comes it should be handled by HmsMessageService method onMessageReceived. Based on that we further take programmatic action.
But in Huawei Notification does not appear in HmsMessageService. Currently, we are not able to take any action.
We have also tried to send notification via HUAWEI Push Kit from app gallery. Then also it does not appear into HmsMessageService. It only shows on top of mobile but it is useless for us we can not take any programmatic action.
The text was updated successfully, but these errors were encountered:
I am using your example send_notify_message.js file from HUAWEI Push Kit(NodeJs). I get a success message in NodeJs log.
{
code: '80000000',
msg: 'Success',
requestId: '160213898154027353000507'
}
I can see Notification appears at top of the mobile but somehow we are not able to see into our Android log.
Normally any notification comes it should be handled by HmsMessageService method onMessageReceived. Based on that we further take programmatic action.
But in Huawei Notification does not appear in HmsMessageService. Currently, we are not able to take any action.
We have also tried to send notification via HUAWEI Push Kit from app gallery. Then also it does not appear into HmsMessageService. It only shows on top of mobile but it is useless for us we can not take any programmatic action.
I was working on React Native
In my case, onMessageReceived was triggered only by DataMessages, at least it was I found out while testing this library.
constpayload={// anything you want heretest: 'test'}constnotification={title: 'Condivisione Messaggio',body: 'Message Shared',};constmessage={data: JSON.stringify({ ...notification, payload }),// added also this one for being sure will be passaed to onMessageReceivedandroid: {collapse_key: -1,urgency: 'HIGH',ttl: '10000s',data: JSON.stringify({ ...notification, payload }),// this one is important},token: [pushChannel,],};
I am using your example send_notify_message.js file from HUAWEI Push Kit(NodeJs). I get a success message in NodeJs log.
{
code: '80000000',
msg: 'Success',
requestId: '160213898154027353000507'
}
I can see Notification appears at top of the mobile but somehow we are not able to see into our Android log.
Normally any notification comes it should be handled by HmsMessageService method onMessageReceived. Based on that we further take programmatic action.
But in Huawei Notification does not appear in HmsMessageService. Currently, we are not able to take any action.
We have also tried to send notification via HUAWEI Push Kit from app gallery. Then also it does not appear into HmsMessageService. It only shows on top of mobile but it is useless for us we can not take any programmatic action.
The text was updated successfully, but these errors were encountered: