cordova-plugin-swrve
Version:
Android and iOS Cordova plugin for Swrve.
14 lines (11 loc) • 662 B
Plain Text
// SWRVE CHANGES
BOOL handled = [SwrvePlugin application:application didReceiveRemoteNotification:userInfo withBackgroundCompletionHandler:^ (UIBackgroundFetchResult fetchResult, NSDictionary *swrvePayload) {
// NOTE: Do not call the Swrve SDK from this context
// Your code here to process a Swrve remote push and payload
completionHandler(fetchResult);
}];
if (!handled) {
// Your code here, it is either a non-background push received in the background or a non-Swrve remote push
// You’ll have to process the payload on your own and call the completionHandler as normal
}
// END OF CHANGES