Skip to content

Fix for app crashes when receiving notification on Cordova IOS 4 #84

@deedw

Description

@deedw

After updating to Xcode 8, Cordova to 6 and IOS platform to 4, the plugin causes application crashes whenever any IOS push notifications arrive.

I have got the plugin working by adjusting line 433 (from master branch) of the function notificationReceived in PushPlugin.m.

I replaced the line

[self.webView performSelectorOnMainThread:@selector(evaluateJavaScript:completionHandler:) withObject:jsCallBack waitUntilDone:NO];

with

[self.commandDelegate evalJs:jsCallBack];

The application now appears to be working fine, but are there any other side-effects of my change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions