codedge-llc / pigeon

iOS and Android push notifications for Elixir
https://hex.pm/packages/pigeon
MIT License
639 stars 143 forks source link

Click_Action #218

Open raphaelmaenle opened 2 years ago

raphaelmaenle commented 2 years ago

I'm trying to send the "click_action" as described here: https://firebase.google.com/docs/cloud-messaging/http-server-ref via FCM Notification (basically to allow for custom click intents depending on the types of notifications). From what I understand, this should be sent outside the 'body' json, inside a seperate 'android' object through the firebase rest API.

As far as I can tell, this is not currently possible with Pigeon. Is there an easy way to achieve this?

best

brunovsiqueira commented 2 years ago

You just need to send "click_action" inside "data" map.