danhper / pushex

Push notifications for Elixir
https://hexdocs.pm/pushex
MIT License
104 stars 7 forks source link

UserNotification support #7

Closed yepesasecas closed 4 years ago

yepesasecas commented 7 years ago

Im trying to send mutable-content and attachment-url to create a customized UserNotification.

but, I don't see this parameters arriving at my Swift App.

Im I doing something wrong? how should I send the mutable-content, no examples in documentation.

regards

danhper commented 7 years ago

For APNS, I am delegating to https://github.com/chvanikoff/apns4ex, so you can pass anything it supports. mutable-content can be passed as mutable_content, and I think attachment-url should be passed inside extra. Let me know how it works for you.

I am working on switching to the HTTP/2 API on another branch, but I am not done yet. I am planning on keeping the upgrade to the HTTP/2 API backward compatible.

mrcnkoba commented 7 years ago

Wasn't mutable-content added to apns4ex in v0.9.6? Pushex is still on 0.9.4.

danhper commented 7 years ago

Oh, you're right. I saw you opened an issue on the apns4ex side, let's upgrade when they release a new package.