Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Documentation now shows how to pass in passphrase for the pem file. #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ Then to send a push notification you can either just send a string as the alert
</code>
</pre>

If your pem file has a passpharase, you can the value to APNS by

<pre>
<code>
APNS.pass = "myprettypassphrase"
</code>
</pre>


h2. Example (Multiple notifications):

You can also send multiple notifications using the same connection to Apple:
Expand Down Expand Up @@ -124,7 +133,7 @@ This snippet comes from "this stackoverflow post's anwser":http://stackoverflow.
NSMutableString* token = [NSMutableString string];

for (int i = 0; i < [deviceToken length]; i++) {
[token appendFormat:@"%02.2hhX", data[i]];
[token appendFormat:@"%02.2hhX", data[i]];
}

return [[token copy] autorelease];
Expand Down