Closed ngseba closed 1 year ago
Hi @ngseba,
We advise you to update the plugin version to the latest. If the issue persists, you can try Huawei AppGallery connect to send data message.
You may also check the examples from the native documentation if you would like to send data message with Postman.
Description I've got 2 issues so far with background data messages.
Expected behavior The background handler should work when app is in background and killed state, all the time, without failures.
Current behavior It just fails to launch and it logs an error if the app is in BACKGROUND, if it's in KILLED state it does not log an error, however it doesn't do anything.
Code This is my background handler which calls the method to display the data_messages as notifications.
The background handler is in the index.js of the application.
This is the body of the remote message that I'm sending through postman. I am sending an actual token there.
Logs
The following log shows the case for which the app is in BACKGROUND state and it actually works and shows the notification.
This one is 5 minutes later when it stops working.
I can see the error that is Change Priority to 'high' however I am unsure of where should I change this priority, I tried changing the body of the message by adding urgency:HIGH but no luck.
Environment