Hi All

I've got a problem with Windows Phone 8 and Cordova application

When I try to register my device to pushwoosh service I am getting error:

The thread 0xfb0 has exited with code 259 (0x103). 'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs{31213BC0-7A88-11E4-8FF9-3F541254F778}\Install\Newtonsoft.Json.DLL'. Cannot find or open the PDB file. initPushwoosh() done Error in Success callbackId: Contacts1263608230 : TypeError: Unable to get property 'value' of undefined or null reference A first chance exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.ni.dll ERROR: Exception in InvokeScriptCallback :: An unknown error has occurred. Error: 80020101.

I have made everything as it is described in API integration so I've made:

cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

no error was returned

Now in my app I've got

function initPushwoosh() { console.log('initPushwoosh()'); debugLog('init Pushwoosh');

var pushNotification = window.plugins.pushNotification;

//set push notifications handler
document.addEventListener('push-notification', function (event) {
    //get the notification payload
    var notification = event.notification;

    //display alert to the user for example

//initialize the plugin
pushNotification.onDeviceReady({ appid: "APPLICATION_ID", serviceName: "" });

//register for pushes
    function (status) {
        var pushToken = status;
        console.warn('push token: ' + pushToken);
    function (status) {
        console.warn(JSON.stringify(['failed to register ', status]));

Can someone please explain me what am I doing wrong?

asked 25 Jan '15, 07:23
Edmund%20Zawietrzny's gravatar image

Edmund Zawie...

I did exactly the same steps and everything worked smoothly without any problems.

Probably you need to update either pushwoosh plugin or cordova.

If you type

cordova -version

What do you see?

Also type

cordova plugins list
cordova platforms list
permanent link
answered 13 Feb '15, 15:12
shader's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 25 Jan '15, 07:23

question was seen: 1,547 times

last updated: 13 Feb '15, 15:12