...
Rich Push Notifications Integration for iOS
5)In order to execute action from buttons or message body the following code needs to be added at AppDelegate file:
Code Block |
---|
#import <RNMappPlugin/RNMappEventEmmiter.h>
// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
(
void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
[[Appoxee shared] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler andNotifyCompletionWithBlock:^(NSError * _Nullable appoxeeError, id _Nullable data) {
}];
return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
} |