Here is what was left out. In the didFinishLaunchingWithOptions method, you need to add:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
pushManager = [[PushNotificationManager alloc] initWithApplicationCode:@"YOUR_APP_ID" appName:@"YOUR_APP_NAME"];
pushManager.delegate = self;
[pushManager handlePushReceived:launchOptions];
Then, you also need these methods in the AppDelegate.m
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken
{
[pushManager handlePushRegistration:devToken];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)pushMessage
{
[pushManager handlePushReceived:pushMessage];
}