https://github.com/ebharathi/expo-push-notification-app-setup
Using Expo , we can send push notifications easily.
https://github.com/ebharathi/expo-push-notification-app-setup
Last synced: about 1 year ago
JSON representation
Using Expo , we can send push notifications easily.
- Host: GitHub
- URL: https://github.com/ebharathi/expo-push-notification-app-setup
- Owner: ebharathi
- Created: 2024-07-28T10:12:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T10:21:17.000Z (almost 2 years ago)
- Last Synced: 2024-07-28T11:54:13.148Z (almost 2 years ago)
- Language: TypeScript
- Size: 329 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FILES CHANGED:
1.notification.ts(helper funcrion to register for push-notification)
2._layout.tsx(where I ccall the register function)
3.Also you need to login with eas and have project-id setup to work
API URL
https://exp.host/--/api/v2/push/send
REQUEST BODY
{
"to": "ExponentPushToken[token....]",
"sound": "default",
"title": "Expo Push Notification test",
"body": "And here is the body!",
"data": { "someData": "goes here" }
}
RESPONSE
{
"data": {
"status": "ok",
"id": "0190f8cc-aee5-7d76-9a4f-4c3f6da81dc2"
}
}