Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

Running a phonegap with ajax and socket.io (ajax and socket.io )

yarek_c_1
Beginner
771 Views

I try to run a phonegap (crosswalk) that uses AJAX and socket.io

I use the latest IntelXDK 2548

(I use full URL to access ajax and socket and my sites uses correct HTTPS)

  • Application works fine directly in browser

I use the debugger for that and all my calls are in status:

status: canceled (in red)

screenshot of intelXDK

I also tried to publish it directly to my phone (all rights set to *)

I am stuck at login process (which uses AJAX)

enter image description here

Question: What should I do ? How to make AJAX and socket run in my phoneGap project ? I tested with Android Project and Android CrossWalk project and I am stuck at login process.

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
771 Views

Try selecting the W3C Widget access approach and set the fields to * and see if that works better.

0 Kudos
PaulF_IntelCorp
Employee
771 Views

Yarek, are you trying to include the whitelist plugin yourself? It should be automatically installed by the build system. See the two images below, when you perform a CLI 5 build you should see one of these two whitelist plugins in the list of installed plugins (dependent on which option you chose, W3C or Cordova Whitelist) in the build log summary.

Cordova Whitelist selected:
Screen Shot 2015-10-14 at 8.36.59 AM.png

W3C Widget selected:
Screen Shot 2015-10-14 at 8.33.49 AM.png

Ignore the difference regarding the "cordova-plugin-crosswalk-webview" plugin, in once case I did a build for Crosswalk and in the other it was a regular Android build.

0 Kudos
Reply