Programmatically send custom push notifications to your phone. Implemented using Expo.
- Send a push notification to your phone from anywhere
- Push notification history (only while the app is open 🤔)
- Clone this repo
npm install
- Download 'Expo Go' on your physical device (this won't work in the simulator)
expo start
- Scan the QR code with your Camera app
-
Grab the push token from your device. Keep this a secret!
(TIP: Tap the token to copy it to the clipboard)
-
Send a request to Expo's Push API:
curl -H "Content-Type: application/json" -X POST "https://exp.host/--/api/v2/push/send" -d '{ "to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]", "title":"hello", "body": "world" }'
See this doc for more info.