wix / react-native-notifications

React Native Notifications
MIT License
3.23k stars 763 forks source link

Open Notification bug on android #998

Closed chenweigh closed 1 year ago

chenweigh commented 1 year ago

Problem

Step, HuaWei Phone

Case1

environment

"react-native": "0.72.3"
"react-native-notifications": "^5.1.0"

I need help, I am not a professional android developer.

chenweigh commented 1 year ago

We solved this problem by sending data through the backend, not through the FCM Control Console. So we can parse the data that we want.

The data format looks something like this.

{
   “notification”: {
      //what official need
      "title": "title",
      "body": "body"
   },
   "data": {
      // what we need
      "title": "title",
      "body": "body",
      "userInfo": {
          id: 1
      }
   }
}