Hi, I am wondering if it is possible to register a device with PushWoosh through a remote webview in Phonegap.

For example, I am loading the website http://example.com in my Phonegap webview, and I have all the push notifications scripts on that site. The scripts are being loaded properly, but I am getting the message "Couldn't register with PushWoosh."

I have confirmed that the script is getting the proper token, device ID, and app ID, but it just won't register. If I move all the files local (the normal Phonegap way) it works fine, so there must be an issue with the remote webview.

Is there a way to do this?


asked 15 Feb '14, 01:16
scottb's gravatar image


I figured this out. For some reason the XMLHttpRequest in pushwoosh.js was not working, so I simply changed it to a jQuery ajax POST and it worked. No idea why, but I'll take it!

I put this in the helper function, and commented out what was already there:

jQuery.ajax({ type: "POST", url: url, data: params }) .done(function( msg ) { alert( "Done " + msg ); }) .fail(function( msg ) { alert( "Fail " + msg ); });

permanent link
answered 15 Feb '14, 06:17
scottb's gravatar image


edited 15 Feb '14, 06:17

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: 15 Feb '14, 01:16

question was seen: 1,236 times

last updated: 15 Feb '14, 06:17