Skip to content

Commit b16846e

Browse files
Update readme (#786)
Remove reference to APNSDataOverflow Fixes #765
1 parent cd8196f commit b16846e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ FCM/GCM and APNS services have slightly different semantics. The app tries to of
175175
.. note::
176176
APNS does not support sending payloads that exceed 2048 bytes (increased from 256 in 2014).
177177
The message is only one part of the payload, if
178-
once constructed the payload exceeds the maximum size, an ``APNSDataOverflow`` exception will be raised before anything is sent.
178+
once constructed the payload exceeds the maximum size, an ``APNSError`` exception will be raised before anything is sent.
179179
Reference: `Apple Payload Documentation <https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW1>`_
180180

181181
Web Push accepts only one variable (``message``), which is passed directly to pywebpush. This message can be a simple string, which will be used as your notification's body, or it can be contain `any data supported by pywebpush<https://github.com/web-push-libs/pywebpush>`.
@@ -319,7 +319,6 @@ Exceptions
319319

320320
- ``NotificationError(Exception)``: Base exception for all notification-related errors.
321321
- ``apns.APNSError(NotificationError)``: Something went wrong upon sending APNS notifications.
322-
- ``apns.APNSDataOverflow(APNSError)``: The APNS payload exceeds its maximum size and cannot be sent.
323322

324323
Django REST Framework (DRF) support
325324
-----------------------------------

0 commit comments

Comments
 (0)