Upgrade from 3.4.2 to 4.2.2


1 comment

  • Avatar

    Our code that worked with 3.4.2 (of com.pushwoosh.plugins.pushwoosh) had this to get the pushNotification object:

    var pushNotification = window.plugins.pushNotification;

    Whereas now the docs suggest:

    var pushNotification = cordova.require("pushwoosh-cordova-plugin.PushNotification");

    If I try that though (after injecting cordova into my factory), I get an error that cordova.require is not a function. With the old code, I do get success, but no notifications are received.

Please sign in to leave a comment.