Skip to content

Notifications

Rutvik Tak edited this page Jan 31, 2023 · 7 revisions

Beams

Chaseapp-Staging

Sending notifications with pusherbeams through cli,

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

Interests

// list of available interests

  1. chases-notifications
  2. firehose-notifications

Notification Types(is required to be passed in notification data for every notification) :

{
  String "Type": "$type"
}
  1. twitter
  2. streams
  3. chase
  4. events
  5. holidays
  6. 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