1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    27
    Answers
    2
    Vote Rating
    0
    squistbe is on a distinguished road

      0  

    Default Unanswered: Handling ajax requests on native android apps.

    Unanswered: Handling ajax requests on native android apps.


    I have packaged a Sencha Touch 2 app with PhoneGap for Android. I can't get the ajax requests to work on my native application. When I handle the request through the browser on http://mydomain.com/mysenchaapp/android/assets/www/ it works fine, however, when I run my app through the emulator as a native app my request fails. I think it would be helpful if I could get fiddler to work on handling native apps' request as well, but I haven't been able to figure that out either. Any help is appreciated.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    For native applications, you may try with Ext.data.JsonP.
    This class is used to create JsonP requests, allows for making requests for data cross domain. It is used to request data from a server in a different domain, something prohibited by typical web browsers because of the same origin policy.

    For More Info, check this:-
    http://docs.sencha.com/touch/2-0/#!/...method-request
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Tags for this Thread