Go to your AppDelegate.m file and add this import at the top of the file:
Still in the AppDelegate.m file, add those line before the @end word:
#pragma mark - Push Notifications
)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
// Notify PushApps of a successful registration.
[[PushAppsManager sharedInstance] updatePushToken:deviceToken];
// Gets called when a remote notification is received while app is in the foreground.
)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
[[PushAppsManager sharedInstance] handlePushMessageOnForeground:userInfo];