Intel Xdk Pushwoosh Implimentation help

Answered

Comments

7 comments

  • Avatar
    John Vercelletto

    If you follow the steps for the phonegap/cordova guide you should be fine. I just implemented it yesterday and it is working fine. I used the example files they have if you look at the guide you will see a download example button near the top. I just used those files, included the index.js file in my index.html, changed the app id and codes for google and it worked.

    Remember you have to get the certificates as outlined for iOS and then for Android.

  • Avatar
    John Vercelletto

    Here is a more detailed answer now that I had time to go back and see what I did. If you have questions let me know.

    I just implemented this yesterday as well and it works fine. Here's what I did to make it easy.

    1. Add the third party plug in in the projects tab. I used the registered cordova plug in to make it easy not the github plugin. Get the certificates (iOS) and credentials (Android) as outlined in the respective configuration guides. (iOS https://www.pushwoosh.com/programming-push-notification/ios/ios-configuration-guide/ and Android https://www.pushwoosh.com/programming-push-notification/android/android-gcm-api-configuration/
    2. Then follow the instructions for iOS and android phonegap / cordova implementation. I didn't use the instructions exactly, I basically downloaded the example files and created the same files in my project (index.js, PushwooshAndroid.js, PushwooshiOS.js)
    3. Change the app id's and other specific ids for your platform in the index.js file.
    4. In the index.html file I added these scripts. I put them in the body not the header.

      <script type="text/javascript" src="js/PushwooshAndroid.js"></script>
      

      <script type="text/javascript" src="js/PushwooshiOS.js"></script> <script type="text/javascript" src="js/index.js"></script>

    5. Then added this line to my init function under deviceready:

      document.addEventListener("deviceready", initPushwoosh, true);

    That's it. It worked. I do have problems with it initializing each time but other than that it works.

  • Avatar
    Evanomondi7

    I have tried the exact same thing but its still not working for some reason.

  • Avatar
    Evanomondi7

    I keep getting the error:

    Uncaught module com.pushwoosh.plugins.pushwoosh.PushNotification not found

    What might be the issue because I followed your method and all other methods with no luck

  • Avatar
    Gayview Mahat

    Evan, please make sure you have correctly added Pushwoosh SDK to your project.

  • Avatar
    Evanomondi7

    it finally worked

  • Avatar
    EgoAnt Productions Inc.

    I have it working in XDK on iOS, but for some reason Rich Pages don't show up at all. Has anyone gotten that to work?

Please sign in to leave a comment.