chvanikoff / apns4ex

APNS for Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow APNS token from feedback to be encoded with lowercase

ramhoj opened this issue · comments

The feedback module gets called with an uppercase representation of the hex APNS token (https://github.com/chvanikoff/apns4ex/blob/master/lib/apns/worker.ex#L122). It would be nice to allow the user to configure this.

config :apns,
  callback_module:    APNS.Callback,
  token_case: :lower # defaults to :upper,

Would you consider a PR to address this?

Yes, please.

Closing very old issue.