aws-amplify / aws-amplify/docs

The docs for Gen 1, v5 and v6, do NOT explain how to send a push notification with react-native.

Open
#8,037 0 comments 0 reactions 0 assignees View on GitHub
amplify/js
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

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:

![image](https://github.com/user-attachments/assets/e2438757-74cf-4d79-90e6-148d47e562cd).

- **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/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.