"Alert: Attempt to invoke virtual method.."

Answered

Comments

5 comments

  • Avatar
    Nikolai Polkhovskiy

    Hello,

    Actually, "com.pushwoosh.plugins.pushwoosh" is a really old version of the plugin which is not supported anymore. Could you please let us know whether the issue can be reproduced with our “pushwoosh-pgb-plugin”?
    Please note that we have moved to npm, so to add the plugin you should use the following line:

    <gap:plugin name="pushwoosh-pgb-plugin" source=**“npm”**/>

    Please refer to our PhoneGap build guide for the most complete information regarding a plugin integration. PhoneGap Guide.

  • Avatar
    verdensllc

    I have reviewed the PhoneGap Guide.

    I what file do I place this code?:

    bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, // deviceready Event Handler // // The scope of 'this' is the event. In order to call the 'receivedEvent' function, we must explicitly call 'app.receivedEvent(...);' onDeviceReady: function() { app.receivedEvent('deviceready'); initPushwoosh(); },

  • Avatar
    verdensllc

    Also, I guess for Step 4 and Step 5, could you explain where that code goes also.

    Then, I should be ready to test again.

  • Avatar
    verdensllc

    I really need help implementing Pushwoosh with PhoneGap Build. I am not using Cordova or PhoneGap.

    I need additional help with the documentation referenced above.

    What should I do?

  • Avatar
    Nikolai Polkhovskiy

    The code you mentioned must be placed in *.js file, but we can't tell you which one, because it's your project.
    We suggest you looking at our Sample for the reference, it should help you understand our PhoneGap Build guide better.

Please sign in to leave a comment.