pusher / push-notifications-android

Android SDK for Pusher Beams
https://www.pusher.com/beams
MIT License
21 stars 21 forks source link

Which id to use a unique identifier for a push notification #134

Closed franciscohanna92 closed 2 years ago

franciscohanna92 commented 2 years ago

Hello! 👋🏻

I'm implemeting a solution to track the status of notifications (sent, received, opened) using the v1 Webhooks.

I will store information aobut notifications on my own database. Which payload key should I use to track a particular notification? I'm not sure how to decide between payload.publish_id or metadata.event_id (here's the example payload format)

Do you have any official suggestions?

benw-pusher commented 2 years ago

Hi! The publish_id is used for identification of a push notification so you should use this.