Add priority option for sending notification

This commit is contained in:
Sergey Petrov
2016-02-09 16:51:42 +03:00
parent 3f61fac159
commit 515bf64ae4
2 changed files with 9 additions and 5 deletions
+5 -3
View File
@@ -1,5 +1,6 @@
from typing import Optional
from apns2.client import NotificationPriority
from apns2.payload import Payload
@@ -10,6 +11,7 @@ class APNsClient(object):
use_alternate_port: bool = False) -> None: ...
def send_notification(self,
token_hex: str,
notification: Payload,
topic: Optional[str] = None) -> None: ...
token_hex: str,
notification: Payload,
prioriy: NotificationPriority = NotificationPriority.Immediate,
topic: Optional[str] = None) -> None: ...