In new version 4.0, How to receive push notification in iOS (Objective-C)?

Hello
I want to know how to receive push notification in iOS (Objective-C) in new version 4.0
I implemented it in old version 3.0
Here is the code to receive push notification in 3.0.

#pragma mark -
#pragma mark IBEPushReceiver Methods
-(void)didReceiveRemoteNotification:(NSString *)notification headers:(NSDictionary *)headers {

}

But in 4.0, It doesn’t support IBEPushReceiver delegate and it works in only 3.0

Please help me.

Thanks.
Mike

Hello Mike,

Please check this and this docs.

Regards, Olga

Hi Olga,

I already checked the docs and the doc describe only about publishing of push notification.
I am asking receiving of push notification.
In version 3.0, IBEPushReceiver delegate receives push notification.
I don’t know how to receive push notification in version 4.0.
Please help this issue.

Thanks.
Mike

You can make it using

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo; 

Method in the AppDelegate class. E.g.

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
 [self application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:^(UIBackgroundFetchResult result){}];
 NSLog(@"USER INFO %@", userInfo);
} 

Push notifications from Backendless are the common iOS notifications, so you can handle them like any other push notifications (check this, Handling Remote Notifications paragraph)

Regards, Olga