Skip to content

Conversation

ihsanberahim
Copy link

Example of the way to hack.

    // Call existing method
    // [self swizzled_application:application didReceiveRemoteNotification:userInfo];
    //[PFPush handlePush:userInfo];

    NSString *message = userInfo[@"aps"][@"alert"];
    NSString *eventName = @"didReceiveRemoteNotification";

    [self.viewController.webView stringByEvaluatingJavaScriptFromString:
        [NSString stringWithFormat:@"setTimeout( function() { cordova.fireDocumentEvent('%@', {message:'%@'} ) }, 0);", eventName, message]];

    NSLog(@"%@ : %@", eventName, message);

@aaronksaunders
Copy link

what problem is this trying to address? Just curious as I am considering integrating this plugin into an application

bal200 pushed a commit to bal200/parse-push-plugin that referenced this pull request Apr 14, 2019
Co-exist with phonegap-plugin-push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants