Application not found and appid blank using Ionic

Comments

13 comments

  • Avatar
    Jorgen Notland

    I have the same problem

  • Avatar
    Nikolai Polkhovskiy

    Hi!

    May I ask you a couple of questions to clarify things?

    1. Does the issue persist if you launch the application second time?
    2. Is there the Application Code in the /registerDevice request?
    3. Could you please specify the version of the plugin and the version of the Cordova itself?
    4. Have you tried our Sample App? Is the issue reproducible with it? Here is the link to the Cordova Sample: https://github.com/Pushwoosh/pushwoosh-phonegap-plugin
    5. By any chance, do you know whether it works for Android?
  • Avatar
    Jorgen Notland

    Hi Nikolai, thanks for answering.

    1. Does the issue persist if you launch the application second time?

    Yes

    2. Is there the Application Code in the /registerDevice request?

    The code is set up like this:

    this.init = function(){ pushNot = window.plugins.pushNotification;

      //initialize Pushwoosh with projectid: "GOOGLE_PROJECT_NUMBER", pw_appid : "PUSHWOOSH_APP_ID". This will trigger all pending push notifications on start.
      pushNot.onDeviceReady({ projectid: "xxxxxxxxx", pw_appid : "xxxxx-xxxxx" });
    
      //register for pushes
      pushNot.registerDevice(
          function(pushToken) {
            console.log('push token: ' + pushToken);
          },
          function(status) {
            console.log(JSON.stringify(['failed to register ', status]));
          }
      );
    

    };

    but there is no /registerDevice request in the xcode log. These are the logged requests: registerUser, applicationOpen, getInApps

    3. Could you please specify the version of the plugin and the version of the Cordova itself?

    Here is some information about my enviroment:

    Cordova CLI: 6.0.0

    com.pushwoosh.plugins.pushwoosh version: 4.2.0

    OS: Mac OS X El Capitan

    Xcode version: Xcode 7.2.1 Build version 7C1002

    4. Have you tried our Sample App? Is the issue reproducible with it?

    I will try it out and post to this thread when im finished.

    5. By any chance, do you know whether it works for Android?

    It works for Android.

  • Avatar
    Jorgen Notland

    Here are some warnings i get in xcode when i do cordova build ios.

    alt text

  • Avatar
    Jorgen Notland

    The example didn't register the device on the pushwoosh application. I entered the correct application id

    it also crashed once leaving this error (it didnt crash every time): 2016-03-16 21:11:44.337 pushwoosh-ionic-sample[1454:2212393] Received memory warning. Message from debugger: Terminated due to memory issue

    This was all tested on a mac.

  • Avatar
    Nikolai Polkhovskiy

    That is actually really weird that it didn't register the device on the Sample app.

    I've passed your request to our developers, lets see what they'll find.

    Please, stay tuned.

  • Avatar
    Nicklas

    I am experiencing the same exact issue for a regular Cordova project.

    The app appears to seize execution along with that error. If i remove the plugin, the app works just fine.

  • Avatar
    Nicklas

    By using version 4.2.1 im getting the same symptoms but the app does not seize execution.

  • Avatar
    Nikolai Polkhovskiy

    Could you please contact our support service at help@pushwoosh.com and attach the Sample project that crushes?

  • Avatar
    Nicklas

    This solved it for me:

    cordova platform rm ios cordova platform add ios@4.1.0

    I had cordova-ios 4.0.1 previously, which i believe is the stabile version currently.

  • Avatar
    Jorgen Notland

    I had cordova-ios 4.0.1, now i upgraded the project(Not sample project) to 4.1.0:

    ionic platform now returns: "Installed platforms: ios 4.1.0"

    Now i get the following error in xcode when building to my iphone: x | Pushwoosh request: | Url: https://cp.pushwoosh.com/json/1.3/getInApps | Payload: {"request":{"device_type":1,"language":"en-GB","application":"","userId":"1DD5F14A-AC72-4B49-B758-D76C65BFB4CE","v":"3.1.1.434","hwid":"1DD5F14A-AC72-4B49-B758-D76C65BFB4CE"}} | Status: "0 server error" | Response:

    The screen is still white after build.

  • Avatar
    Nikolai Polkhovskiy

    Could you please attach the full log, preferably in some text file?

    Also, a reproducer with our modified Sample that was not registering for notifications would be nice too, so we'd be able to test it ourselves.

  • Avatar
    Yves

    We get the same server error on iOS:

    x
    |    Pushwoosh request:
    | Url:      https://cp.pushwoosh.com/json/1.3/registerUser
    | Payload:  {"request":{"hwid":"XX123456-12X3-12X3-12X3-XX123456","userId":"XX123456-12X3-12X3-12X3-XX123456","application":"D7DAF-3CE66","v":"4.0.4.","device_type":1}}
    | Status:   "0 server error"
    | Response: 
    x
    

    We're using Ionic, Cordova@6.3.0 and pushwoosh-cordova-plugin@6.0.2

    Android is sending the correct response correctly though. Is there currently any issue with the pushwoosh server?

Please sign in to leave a comment.