From 460adf5d603d14e0cd2a78188a66f3a697709bc8 Mon Sep 17 00:00:00 2001 From: Jay Chae Date: Mon, 16 Sep 2013 10:38:20 -0500 Subject: [PATCH] Documentation now shows how to pass in passphrase for the pem file. --- README.textile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.textile b/README.textile index b7f5d7f..c532447 100644 --- a/README.textile +++ b/README.textile @@ -47,6 +47,15 @@ Then to send a push notification you can either just send a string as the alert +If your pem file has a passpharase, you can the value to APNS by + +
+  
+    APNS.pass = "myprettypassphrase"
+  
+
+ + h2. Example (Multiple notifications): You can also send multiple notifications using the same connection to Apple: @@ -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];