Skip to content

Commit a021118

Browse files
DataGreedAsif Saif Uddin
authored andcommitted
added info about APNS_AUTH_KEY_PATH, APNS_AUTH_KEY_ID, APNS_TEAM_ID
settings for using Apple's p8 push certificates
1 parent 3a63527 commit a021118

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Edit your settings.py file:
6666
.. note::
6767
If you are planning on running your project with ``APNS_USE_SANDBOX=True``, then make sure you have set the
6868
*development* certificate as your ``APNS_CERTIFICATE``. Otherwise the app will not be able to connect to the correct host. See settings_ for details.
69+
6970

7071
For more information about how to generate certificates, see `docs/APNS <https://github.com/jazzband/django-push-notifications/blob/master/docs/APNS.rst>`_.
7172

@@ -92,9 +93,13 @@ For WNS, you need both the ``WNS_PACKAGE_SECURITY_KEY`` and the ``WNS_SECRET_KEY
9293
**APNS settings**
9394

9495
- ``APNS_CERTIFICATE``: Absolute path to your APNS certificate file. Certificates with passphrases are not supported. Read more about `Generation of an APNS PEM file <https://github.com/jazzband/django-push-notifications/blob/master/docs/APNS.rst>`_.
96+
- ``APNS_AUTH_KEY_PATH``: Absolute path to your APNS signing key file for `Token-Based Authentication <https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns>`_ . Use this instead of ``APNS_CERTIFICATE`` if you are using ``.p8`` signing key certificate.
97+
- ``APNS_AUTH_KEY_ID``: The 10-character Key ID you obtained from your Apple developer account
98+
- ``APNS_TEAM_ID``: 10-character Team ID you use for developing your company’s apps for iOS.
9599
- ``APNS_TOPIC``: The topic of the remote notification, which is typically the bundle ID for your app. If you omit this header and your APNs certificate does not specify multiple topics, the APNs server uses the certificate’s Subject as the default topic.
96100
- ``APNS_USE_ALTERNATIVE_PORT``: Use port 2197 for APNS, instead of default port 443.
97101
- ``APNS_USE_SANDBOX``: Use 'api.development.push.apple.com', instead of default host 'api.push.apple.com'.
102+
-
98103

99104
**FCM/GCM settings**
100105

0 commit comments

Comments
 (0)