-
-
Notifications
You must be signed in to change notification settings - Fork 0
Notifications
Rutvik Tak edited this page Jan 31, 2023
·
7 revisions
1️⃣ Following send notifications to all registered devices,
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $BearerToken" \
-X POST "https://${PusherInstanceId}.pushnotifications.pusher.com/publish_api/v1/instances/${PusherInstanceId}/publishes" \
-d '{"interests":["hello"],"fcm":{"notification":{"title":"Hello", "body":"Hello, world!"}}}'
// list of available interests
- chases-notifications
- firehose-notifications
{
String "Type": "$type"
}
- streams
- chase
- events
- holidays
- weather
More information on how to update document based on different notification types is provider here 👇 https://github.com/chase-app/flutter/wiki/Data-Models#notification-sent-from-either-firebasepusher