Description
The documentation provides detailed steps on configuring notifications for iOS and Android and handling INCOMING notifications, but there’s no information on how to send one.
On this page: https://docs.amplify.aws/gen1/react-native/prev/build-a-backend/push-notifications/set-up-push-notifications/, the index includes:
- Setup Amplify Push Notifications: Configuration details only.
- Request Permissions: How to request permissions, but not how to send notifications.
- Receive a device token: Explanation of code on how to receive a device token, I imagine this is supposed to be used somewhere to send a notification, but no idea where. (The code snippet on that page is not working for me by the way, but that's a separate issue):
- Interact with Notifications: Information on handling the reception of INCOMING notifications, but no details on SENDING them.
- Identify user to Amazon Pinpoint: Assigns a user ID for Amazon Pinpoint, but doesn’t explain how this relates to sending notifications.
- Add app badge count: Adding a badge count to the app icon, no details on sending.
- Enable Rich Notifications: Enhances the notification UI, again no details on sending.
- Test Push Notifications: Testing from the console, but no in-app sending instructions.
- Set up push notification services: Configuring Apple and Google accounts to obtain keys/etc. No info on how to send in-app
- Migrating from previous version: Info on which deprecated functions need to be replaced, again no info.
I've tried reading multiple blogs (outside of the docs), and I still can’t find reliable documentation on how to trigger a notification sending from within the app (each one I've read is either deprecated or incomplete as well). This seems like a fundamental part of push notifications, yet it’s missing from the docs. Instead, the focus is on peripheral features. Why? It's quite honestly... baffling...
URL where the issue exists:
https://docs.amplify.aws/gen1/react-native/prev/build-a-backend/push-notifications/set-up-push-notifications/