20 Aug 2012 2:09 PM #1
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.
20 Aug 2012 10:58 PM #2
- Join Date
- May 2012
- Vote Rating
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-requestsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.