Skip to content

Commit

Permalink
Allow convert_device_token_to_hex apns config option. (#364)
Browse files Browse the repository at this point in the history
Signed-off-by: Wes Chow <[email protected]>
  • Loading branch information
wesc committed Mar 19, 2024
1 parent c8a85fd commit 8992265
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ For either type, it can accept:
Valid values are 'production' or 'sandbox'. If not provided, 'production' is used.
- the `push_type` parameter which determines what value for the `apns-push-type` header is sent to
APNs. If not provided, the header is not sent.
- the `convert_device_token_to_hex` parameter which determines if the
token provided from the client is b64 decoded and converted to
hex. Some client libraries already provide the token in hex, and
this should be set to `False` if so.

### gcm

Expand Down
1 change: 1 addition & 0 deletions changelog.d/364.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add convert_device_token_to_hex to the list of understood APNs config parameters.
1 change: 1 addition & 0 deletions sygnal/apnspushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class ApnsPushkin(ConcurrencyLimitedPushkin):
"keyfile",
"topic",
"push_type",
"convert_device_token_to_hex",
} | ConcurrencyLimitedPushkin.UNDERSTOOD_CONFIG_FIELDS

APNS_PUSH_TYPES = {
Expand Down

0 comments on commit 8992265

Please sign in to comment.