英特尔® XDK

Unable to get ajax calls to work on real Android device

I have an app that makes Ajax calls from jQuery. It works fine in simulation from XDK. When built using PhoneGap Build, it works fine on an iPhone, and on an Android device using the PhoneGap app, but not on the Android device when loaded from a .apk file - the ajax call just calls the error callback with status 0.

Here is some trivial code just to test this ability:

Alternatives to Using the Intel® XDK to Develop Mobile Apps

The Intel® XDK provides a cross-development environment for creating hybrid mobile HTML5 apps based on the Apache* Cordova* mobile app framework (aka Adobe* PhoneGap*). The Cordova mobile app framework defines a standard "HTML5 to native wrapper" structure and a third-party plugin interface that allows developers to extend the JavaScript API for HTML5 mobile apps.

  • 专业版
  • 学生
  • HTML5
  • HTML5
  • JavaScript*
  • 高级
  • 入门级
  • 中级
  • 英特尔® XDK
  • Build Your Intel® XDK Mobile App using PhoneGap* Build

    A version of this article was originally published as part of the Intel® XDK documentation book.

    This document assumes that you have successfully exported your Intel XDK project using the Cordova Build Package export tool. For instructions on how to export your project, see the doc page titled Export your Intel® XDK Mobile App to PhoneGap* Build or Cordova* CLI.

  • 专业版
  • 学生
  • HTML5
  • HTML5
  • JavaScript*
  • 高级
  • 入门级
  • 中级
  • 英特尔® XDK
  • Suggestions on exporting legacy phonegap project

    Hi All.

    We've long since move our core projects off to PGB (hate it!) and wish XDK would reconsider.

    Having said that, we have one project that we thought was dead but is now in zombie state. I understand that XDK has an export tool.. what version is that in?  I have the latest (3987) but it doesn't appear to have a way of reading an existing project.

    Suggestions?

    Cordova Build Package - iOS problem

    Hi

    Ive used the BUILD > Cordova Build Package for Android with same  signing certificate to publish updates to my app
    by downloading it from xdk - THIS WORKS FINE

    BUT for iOS its recommended to create new signing certificates
    Ive done that but get error in Phonegap Build - Certificate doesn't match profile: The default keychain doesn't have an identity matching

    How do I use these new ones in XDK ? cant import any

     

    REGARDS

    Flemming

     

     

     

     

     

     

    订阅 英特尔® XDK