Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kupsum committed Mar 16, 2024
1 parent f27bea0 commit 9558516
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ For WNS, you need both the ``WNS_PACKAGE_SECURITY_KEY`` and the ``WNS_SECRET_KEY
- ``USER_MODEL``: Your user model of choice. Eg. ``myapp.User``. Defaults to ``settings.AUTH_USER_MODEL``.
- ``UPDATE_ON_DUPLICATE_REG_ID``: Transform create of an existing Device (based on registration id) into a update. See below `Update of device with duplicate registration ID`_ for more details.
- ``UNIQUE_REG_ID``: Forces the ``registration_id`` field on all device models to be unique.
- ``DEFAULT_CLOUD_MESSAGE_TYPE``: The default cloud message type to use when registering a FCM/GCM device. Defaults to ``"GCM"``. Can be set to ``"FCM"`` to use Firebase Cloud Messaging instead.
- ``DEFAULT_CLOUD_MESSAGE_TYPE``: The default cloud message type to use when registering a FCM/GCM device. Defaults to ``"FCM"``. Can be set to ``"GCM"`` to use Google Cloud Messaging instead.

**APNS settings**

Expand Down
4 changes: 0 additions & 4 deletions push_notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ def get_default_cloud_message_type() -> str:
return SETTINGS.get("DEFAULT_CLOUD_MESSAGE_TYPE", "FCM")


def get_default_cloud_message_type() -> str:
return SETTINGS.get("DEFAULT_CLOUD_MESSAGE_TYPE", "FCM")


class GCMDevice(Device):
# device_id cannot be a reliable primary key as fragmentation between different devices
# can make it turn out to be null and such:
Expand Down

0 comments on commit 9558516

Please sign in to comment.