We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0638e8 commit e505babCopy full SHA for e505bab
README.rst
@@ -62,13 +62,14 @@ Basic Usage
62
client_cert='/path/to/apns-cert.pem',
63
use_sandbox=False,
64
)
65
- apns_key_client = APNs(
66
- key='/path/to/apns-key.p8',
67
- key_id='<KEY_ID>',
68
- team_id='<TEAM_ID>',
69
- topic='<APNS_TOPIC>', # Bundle ID
70
- use_sandbox=False,
71
- )
+ with read('/path/to/apns-key.p8') as key:
+ apns_key_client = APNs(
+ key=key,
+ key_id='<KEY_ID>',
+ team_id='<TEAM_ID>',
+ topic='<APNS_TOPIC>', # Bundle ID
+ use_sandbox=False,
72
+ )
73
request = NotificationRequest(
74
device_token='<DEVICE_TOKEN>',
75
message = {
0 commit comments