R
R
Roman2012-11-08 16:16:51
iOS
Roman, 2012-11-08 16:16:51

ASP.NET web service call not working on iPad

Hello. Who has experience in debugging ASP.NET applications on the ipad, please tell me. There is a web service that works fine in all browsers except safari on the ipad. Returns the value of some boolean variable, depending on the result, one or the other function is called:

WebSite.Services.User.Settings.GetBoolean("SOME_SETTING",
        function(result) {
          if (result) onTrue();
          else onFalse();
          SOME_SETTING = result;
        },
        function(result) {
          alert(result.get_message());
        }

When calling this service from an iPad, the result variable is always set to true, even if SOME_SETTING is set to false.
If you put a breakpoint in the studio on a call to this service, then it does not work. Other services are working fine.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman, 2012-11-09
@Peregrinus

Thanks everyone for the advice. Understood. The problem was that the iPad was caching http requests. I added the current time to the passed parameters so that the request was different each time and rewrote this piece to jquery via $.post(). Helped.

Y
YGeorge, 2012-11-08
@YGeorge

I think we should start with the breakpoint problem. Does it work if accessed from other browsers? If yes, then look why we don’t get into the function, maybe it somehow manages and therefore always returns true

A
Antelle, 2012-11-08
@Antelle

You probably have a bug somewhere in your javascript that only repeats on the iPad. Put a breakpoint in the script on the device and see why the request is not sent to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question