registerDevice not firing callback with phonegap

Answered

Comments

8 comments

  • Avatar
    Max Konev

    Do you use Phonegap Build? If so - please use Pushwoosh 3.4.1 version of the plugin!

  • Avatar
    dom1984

    I use both Phonegap Build and that versione of the plugin. I could not figure out which was the problem so i give up with that plugin and switched to another solution. I installed PushPlugin (com.phonegap.plugins.PushPlugin, 2.4.0) instead of the PushNotification.js file and the PushWoosh remote API (https://www.pushwoosh.com/programming-push-notification/pushwoosh-push-notification-remote-api/) and almost everything seems to work fine. I've successfully registered android and ios devices and the only problem is that android notifications does not arrive to device.

  • Avatar
    Max Konev

    For com.phonegap.plugins.PushPlugin go to the Pushwoosh Control Panel, then Application->Configure->Edit
    You will see radiobuttons for iOS and Android platforms.
    Select "Appresser" for Android. Then you should see push notification correctly on Android.

  • Avatar
    Chris

    OP are you finding that while the callback in NOT getting called, the device is actually registering with PushWoosh?

    I too am not getting the registerDevice callback (success or failure), however, I can see via PushWoosh that the device IS registered. If I give a test push via PushWoosh, the device receives it and opens the associated app.

    Is anyone else able to add to this?

    Ta -Chris

  • Avatar
    dom1984

    Thanks a lot, it works now! Next step is to increment the small number on the app icon in android (like the badges in ios).

  • Avatar
    Chris

    Hmmm, I removed the iOS platform and added it again and now I get a device token, well, what claims to be a device token.

    Still having issues though!

  • Avatar
    Max Konev

    What kind of issues? You might want to check that your codesigning certs matches the push gateway. Developer cert - Sandbox gateway, AdHoc - Production gateway

  • Avatar
    Chris

    Hi Shader,

    the certs etc are fine and push notifications work from pushwoosh.com, however, if the supplied device token does not work for me when I supply it with an API call.

Please sign in to leave a comment.