ajax calls in ios build

5 posts, 0 answers
  1. Maor
    Maor avatar
    50 posts
    Member since:
    Dec 2012

    Posted 09 Jul 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Jul 2013 Link to this post

    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.
  3. Maor
    Maor avatar
    50 posts
    Member since:
    Dec 2012

    Posted 11 Jul 2013 Link to this post

    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
  4. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 11 Jul 2013 Link to this post

    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.
  5. Maor
    Maor avatar
    50 posts
    Member since:
    Dec 2012

    Posted 15 Jul 2013 Link to this post

    thanks!!!
    after following this tutorial i managed to solve the problem!
    it was frustrated and took me 2 days out researching..
    thanks again 
    maor
Back to Top