---
# System prepended metadata

title: 'C+ push notifications - Thurs/Fri 15th + 16th Oct, 2020'
tags: [programmingjournal, notifications, pushnotifications, '2020', apns]

---

# C+ push notifications - Thurs/Fri 15th + 16th Oct, 2020

I have started adding push notifications for C+.

I've previously worked with push notifications in full Swift and Java apps, but this the first time I am implementing them in a React Native context.

Our setup works with Apple's APNS and Google's FMS.

Thus far, I am using the [react-native-push-notification](https://github.com/zo0r/react-native-push-notification) library. It has been relatively straightforward to get push notifications working on iOS.

You can test with the command:

```bash=
curl -v https://api.sandbox.push.apple.com/3/device/YOURDEVICETOKEN -d '{"aps":{"alert":"test 123","sound":"default"}}' -H "apns-topic:YOURAPPBUNDLEID" -H "apns-expiration: 1" -H "apns-priority: 10" --http2 --cert ./PATH-TO-PEM
```

The problem I think will be not getting enough information in the notification payload that we need now that the app navigation has changed quite a lot.

###### tags: `programmingjournal` `2020` `notifications` `pushnotifications` `apns`