You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,14 +57,12 @@ All settings are contained in a PUSH_NOTIFICATIONS_SETTINGS dict.
57
57
In order to use GCM, you are required to include GCM_API_KEY.
58
58
For APNS, you are required to include APNS_CERTIFICATE.
59
59
60
-
- APNS_CERTIFICATE: Absolute path to your APNS certificate file. Certificates with passphrases are not supported.
61
-
- GCM_API_KEY: Your API key for GCM.
62
-
- APNS_HOST: The hostname used for the APNS sockets. When DEBUG=True, this defaults to gateway.sandbox.push.apple.com.
63
-
When DEBUG=False, this defaults to gateway.push.apple.com.
64
-
- APNS_PORT: The port used along with APNS_HOST. Defaults to 2195.
65
-
- GCM_POST_URL: The full url that GCM notifications will be POSTed to. Defaults to https://android.googleapis.com/gcm/send.
66
-
- GCM_MAX_RECIPIENTS: The maximum amount of recipients that can be contained per bulk message. If the registration_ids list
67
-
is larger than that number, multiple bulk messages will be sent. Defaults to 1000 (the maximum amount supported by GCM).
60
+
- APNS_CERTIFICATE: Absolute path to your APNS certificate file. Certificates with passphrases are not supported.
61
+
- GCM_API_KEY: Your API key for GCM.
62
+
- APNS_HOST: The hostname used for the APNS sockets. When DEBUG=True, this defaults to gateway.sandbox.push.apple.com. When DEBUG=False, this defaults to gateway.push.apple.com.
63
+
- APNS_PORT: The port used along with APNS_HOST. Defaults to 2195.
64
+
- GCM_POST_URL: The full url that GCM notifications will be POSTed to. Defaults to https://android.googleapis.com/gcm/send.
65
+
- GCM_MAX_RECIPIENTS: The maximum amount of recipients that can be contained per bulk message. If the registration_ids list is larger than that number, multiple bulk messages will be sent. Defaults to 1000 (the maximum amount supported by GCM).
68
66
69
67
Sending messages
70
68
----------------
@@ -127,10 +125,10 @@ attempt to send a message to the device fails after the call to the feedback ser
127
125
Exceptions
128
126
----------
129
127
130
-
- NotificationError(Exception): Base exception for all notification-related errors.
131
-
- gcm.GCMError(NotificationError): An error was returned by GCM. This is never raised when using bulk notifications.
132
-
- apns.APNSError(NotificationError): Something went wrong upon sending APNS notifications.
133
-
- apns.APNSDataOverflow(APNSError): The APNS payload exceeds its maximum size and cannot be sent.
128
+
- NotificationError(Exception): Base exception for all notification-related errors.
129
+
- gcm.GCMError(NotificationError): An error was returned by GCM. This is never raised when using bulk notifications.
130
+
- apns.APNSError(NotificationError): Something went wrong upon sending APNS notifications.
131
+
- apns.APNSDataOverflow(APNSError): The APNS payload exceeds its maximum size and cannot be sent.
134
132
135
133
136
134
Tastypie support
@@ -140,10 +138,10 @@ The app includes tastypie-compatible resources in push_notifications.api. These
140
138
for more involved APIs.
141
139
The following resources are available:
142
140
143
-
- APNSDeviceResource
144
-
- GCMDeviceResource
145
-
- APNSDeviceAuthenticatedResource
146
-
- GCMDeviceAuthenticatedResource
141
+
- APNSDeviceResource
142
+
- GCMDeviceResource
143
+
- APNSDeviceAuthenticatedResource
144
+
- GCMDeviceAuthenticatedResource
147
145
148
146
The base device resources will not ask for authentication, while the authenticated ones will link the logged in user to
0 commit comments