An open API service indexing awesome lists of open source software.

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.

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"
}
}