1. #1
    Sencha User
    Join Date
    Oct 2013
    Vote Rating
    a3366873 is on a distinguished road


    Default Ajax and Phonegap

    Ajax and Phonegap


    I know that it is more Phonegap issue, but maybe someone knows what to do.
    I try to run simple ajax request from my phonegap based mobile app (installed on device) but request always fails.
    I tried <access origin="" /> setting in config.xml with wildcard, exact domain and removing access tag since docs claim that it allows all domains by default.

    In manifest there is permission for internet:
    <uses-permission android:name="android.permission.INTERNET" />

    What else do I need to configure to access external server via Ajax request?

    code from launch function:
                url: 'http://ip.jsontest.com/',
                success: function(response){
                failure: function(response, opts) {
                    alert('failure: ' + JSON.stringify(response));
    response status is 0...
    tried with useDefaultXhrHeader: false but with same result. AFAIK packaged apps are not affected by CORS mechanism.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Vote Rating
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all



    What version of phonegap and Touch are you using?
    Have you checked their Jira project to see if there was any report of a bug.
    Have you tried using a different version of phonegap?
    Have you tried debugging with Weinre?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi