Permalink
Browse files

Added a little extra feedback about sandbox transmission

  • Loading branch information...
1 parent 78932ad commit 3fd9bb8b248ecacc66f97c37a1da7ae9771ec21a Erica Sadun committed Aug 10, 2009
@@ -178,7 +178,7 @@
GCC_PREFIX_HEADER = HelloWorld_Prefix.pch;
INFOPLIST_FILE = "HelloWorld-Info.plist";
PRODUCT_NAME = HelloWorld;
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "44DBF7AB-4A01-4612-8FBF-E649E306F9F4";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "A3F26AFC-7F4C-44C6-B7D7-F54FE50F1AFB";
};
name = Debug;
};
@@ -58,7 +58,10 @@ - (BOOL) push: (NSString *) payload
// Establish connection to server.
PeerSpec peer;
if (USE_SANDBOX)
+ {
+ printf("Sending message via sandbox\n");
result = MakeServerConnection("gateway.sandbox.push.apple.com", 2195, &socket, &peer);
+ }
else
result = MakeServerConnection("gateway.push.apple.com", 2195, &socket, &peer);
if (result)
@@ -224,7 +227,10 @@ - (NSArray *) fetchFeedback
// Establish connection to server.
PeerSpec peer;
if (USE_SANDBOX)
+ {
+ printf("Recovering feedback via sandbox\n");
result = MakeServerConnection("feedback.sandbox.push.apple.com", 2196, &socket, &peer);
+ }
else
result = MakeServerConnection("feedback.push.apple.com", 2196, &socket, &peer);
if (result)
Binary file not shown.

0 comments on commit 3fd9bb8

Please sign in to comment.