README is missing topic argument
This commit is contained in:
committed by
Sergey Petrov
parent
3792bc7df8
commit
7fe9d6aa91
@@ -21,8 +21,9 @@ from apns2.payload import Payload
|
|||||||
|
|
||||||
token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87'
|
token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87'
|
||||||
payload = Payload(alert="Hello World!", sound="default", badge=1)
|
payload = Payload(alert="Hello World!", sound="default", badge=1)
|
||||||
|
topic = 'com.example.App'
|
||||||
client = APNsClient('key.pem', use_sandbox=False, use_alternative_port=False)
|
client = APNsClient('key.pem', use_sandbox=False, use_alternative_port=False)
|
||||||
client.send_notification(token_hex, payload)
|
client.send_notification(token_hex, payload, topic)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Further Info
|
## Further Info
|
||||||
|
|||||||
Reference in New Issue
Block a user