taskrabbit / react-native-zendesk-chat

React Native Wrapper around Zendesk Chat v2
MIT License
130 stars 128 forks source link

Not showing a notification when the app in quit state - Android #142

Open khoidiep-rayyone opened 2 years ago

khoidiep-rayyone commented 2 years ago

Notification from Zendesk {"data": {"data": "{\"author\":\"Jakub Kraus\",\"message\":\"sdsdsd\",\"type\":\"zd.chat.msg\",\"ts\":1613552261}"}, "from": "341409816227", "messageId": "0:1613552261649404%1596f81ef9fd7ecd", "sentTime": 1613552261633, "ttl": 2419200}

In React Native Firebase document, When an incoming message is "data-only" (contains no notification option), both Android & iOS regard it as low priority and will prevent the application from waking (ignoring the message). To allow data-only messages to trigger the background handler, you must set the "priority" to "high" on Android.

I have config follow the document (https://developer.zendesk.com/documentation/classic-web-widget-sdks/chat-sdk-v2/android/push_notifications/). Am I missing some config? Thank you