shufo / fcmex

A Firebase Cloud Message client for Elixir
https://hex.pm/packages/fcmex
MIT License
75 stars 24 forks source link

Support APNS payload key #32

Open antonioparisi opened 4 years ago

antonioparisi commented 4 years ago

hi @shufo - hope you're well.

as you can see from here: https://firebase.google.com/docs/cloud-messaging/send-message#example-notification-message-with-platform-specific-delivery-options

APNS can be set

macabeus commented 4 years ago

Is there some plans to support this APNS key and android? These keys are necessary in order to be able to send an image url.

shufo commented 4 years ago

Thanks for creating issue! Currently APNS and android key is not supported by this library because lack of HTTP v1 API support. But have plan.

If you would like to consider other library, there are library supported APNS key (HTTP v1 API supported) like this. https://github.com/scripbox/firebase-admin-ex

I will be supporting the HTTP v1 API soon, but if you are in a hurry, you could consider other libraries.

macabeus commented 4 years ago

@shufo Thank you for quick reply.

I'm trying to use this another package, but as long I seen, it doesn't support to send a message to topic, but just for one device (since it requires a user device registration token). So isn't possible to use it on my project.