Permalink
Browse files

Clean up indentation in README

  • Loading branch information...
1 parent 5f7c858 commit f816cd959517f6db3cb5942ba3218be3dc1273f8 @seejohnrun committed Apr 25, 2012
Showing with 11 additions and 7 deletions.
  1. +11 −7 README.md
View
@@ -62,8 +62,12 @@ APNS.send_notifications([n1, n2])
You can send other application specific information as well.
``` ruby
-APNS.send_notification(device_token, :alert => 'Hello iPhone!', :badge => 1, :sound => 'default',
- :other => {:sent => 'with apns gem'})
+APNS.send_notification(device_token,
+ :alert => 'Hello iPhone!',
+ :badge => 1,
+ :sound => 'default',
+ :other => {:sent => 'with apns gem'}
+)
```
This will add the other hash to the same level as the aps hash:
@@ -79,14 +83,14 @@ After you setup push notification for your application with Apple. You need to a
``` objc
- (void)applicationDidFinishLaunching:(UIApplication *)application {
- // Register with apple that this app will use push notification
- [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert |
- UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge)];
+ // Register with apple that this app will use push notification
+ [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert |
+ UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge)];
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
- // Show the device token obtained from apple to the log
- NSLog(@"deviceToken: %@", deviceToken);
+ // Show the device token obtained from apple to the log
+ NSLog(@"deviceToken: %@", deviceToken);
}
```

0 comments on commit f816cd9

Please sign in to comment.