Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added percent escapes (aka URL encoding) to URL string

Apps with characters not valid for an URL (e. g. Spaces) in their Bundle Display Name would fail to register with the APNS Easy server component.
  • Loading branch information...
commit 3fb39dea8d163727216a1b4f5594d4f15b8730fd 1 parent 5eff6ed
@gonecoding authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/delegate/Delegate.m
View
2  src/delegate/Delegate.m
@@ -75,7 +75,7 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
// Register the Device Data
// !!! CHANGE "http" TO "https" IF YOU ARE USING HTTPS PROTOCOL
- NSURL *url = [[NSURL alloc] initWithScheme:@"http" host:host path:urlString];
+ NSURL *url = [[NSURL alloc] initWithScheme:@"http" host:host path:[urlString stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSLog(@"Register URL: %@", url);
Please sign in to comment.
Something went wrong with that request. Please try again.