react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Android mixed notification documentation

Open peacechen opened this issue 8 years ago • 5 comments

I believe that the example snippet for mixed notifications needs updating. https://github.com/zo0r/react-native-push-notification/blob/master/trouble-shooting.md#android-mixed-remote-push-notifications

The server should sent both a data key as well as a notification key.

{
  "to": "<token>",
  "time_to_live": 86400,
  "collapse_key": "new_message",
  "delay_while_idle": false,
  "data": {
    "title": "title",
    "message": "this is a mixed test 14:03:29.676",
    "your-key": "your-value"
  }
  "notification": {
    "title": "title",
    "message": "this is a mixed test 14:03:29.676",
  }
}

Took a lot of experimentation to figure that out. Has anyone else done this as well?

peacechen avatar Nov 08 '18 15:11 peacechen

@peacechen Thank you for posting this. I was struggling as well until i found out your post.

bthuan avatar Sep 09 '19 23:09 bthuan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 09 '20 00:09 github-actions[bot]

2 years later and the docs still haven't been fixed 🙄

peacechen avatar Oct 09 '20 02:10 peacechen

Hi @peacechen Feel free to make a PR ;) Regards

Dallas62 avatar Oct 09 '20 06:10 Dallas62

Also this kind of notification is not supported anymore.

Dallas62 avatar Oct 09 '20 06:10 Dallas62