evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 682 forks source link

Click on banner in IOS opens app with opened_from_tray set to 0 (android is fine) #929

Closed vvusts closed 6 years ago

vvusts commented 6 years ago

I post two different payloads from server for different OS: Android:

{
  "to": "fff",
  "data": {
    "custom_notification": {
      "title": "test",
      "body": "test",
      "sound": "default",
      "priority": "high",
      "targetScreen": "details"
    }
  },
  "priority": 10
}

IOS

{
  "to": "fff",
  "notification": {
    "title": "test",
    "body": "test",
    "sound": "default"
  },
  "data": {
    "targetScreen": "details"
  },
  "content_available": true,
  "priority": 10
}

This worked a few days ago. Android work fine. On IOS I get banners sending remote notification work but if I press banner it opens app but opened_from_tray is always 0 only on IOS. @evollu do you maybe have some idea :(