Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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];

}