This is a migrated thread and some comments may be shown as answers.

ajax calls in ios build

4 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maor
Top achievements
Rank 1
Maor asked on 09 Jul 2013, 02:56 PM
hi 
after making my app work just fine in android , using icenium and kendo ui, i am having difficulties to do the same in apple devices.
basically i am  using kendo datasource to read data from web service and update it.
it is looks like it ignoring $.get functions without alerting. any ideas why? what do i miss?
i set already the <access origin="*"... tag in config .xml but it still doesn't work
regards
 maor

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Jul 2013, 12:52 PM
Hi Maor,

First make sure you're using the latest supported Kendo UI version (2013.1.621). Second if you run your app in the Icenium simulator and use the iPhone device simulator - does it work.

If you have an iOS 6+ device at your disposal, you can debug directly on the device (enable Safari Web Inspector first) to find out what is wrong, for more information, please refer to this blog post: Icenium LiveSync - Real Time Testing and Debugging.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
Maor
Top achievements
Rank 1
answered on 11 Jul 2013, 06:10 AM
hi steve and thanks for the reply
its always good to discover another part of debugging with icenium. 
so after i have follow the attached tutorial i managed to to debug my app in iphone.
my app i s using post request to create authentication with the server and later using GET messages  to get json info from server. the crud service is implemented in server with web.api and i add "authorized" attribute to the classes to prevent unauthorized requests.  in android my app work fine and seems to save server credentials after authorization, so GET request are responded. on the other  hand, in ios, after debugging it(following the tutorial) it seems that ios cant save my authorization credentials and GET requests denied after i have logged in.
what is wrong in ios? what i am missing? maybe it rely on caching of ios? maybe its because the structure of the object that manage all the login request? 
ps.. do you have example of login object/script in mobile apps?
regards
 maor
0
Yavor Georgiev
Telerik team
answered on 11 Jul 2013, 04:53 PM
Hi Maor,

 Can you please share some details about your server environment? Are you using ASP.NET Forms Authentication on the server, or another solution that involves a cookie? Your issue sounds exactly like the one described in this Stack Overflow question. Could you please try the proposed solution there and see if it works for you?

Regards,
Yavor Georgiev
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
Maor
Top achievements
Rank 1
answered on 15 Jul 2013, 10:27 AM
thanks!!!
after following this tutorial i managed to solve the problem!
it was frustrated and took me 2 days out researching..
thanks again 
maor
Tags
General Discussions
Asked by
Maor
Top achievements
Rank 1
Answers by
Steve
Telerik team
Maor
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or