Any idea how to simulate online/offline situation on IPhone?

Best practices, code snippets for common functionality, examples, and guidelines.
Klinke
Posts: 4
Joined: Wed Nov 12, 2014 5:09 pm

Any idea how to simulate online/offline situation on IPhone?

Post by Klinke » Sun Apr 10, 2016 10:29 am

Hi,

Since I cannot record iPhone settings through Ranorex (due to Apple policy) I have no idea how to automatically turn OFF internet (airplace mode) and turn it back ON when needed. The purpose of this would be to simulate situation when users loose internet (validate alerts within app, offline mode behavior etc.).

I haven't found so far any iOS app that would simply have a switch for Internet ON/OFF.

Any ideas?

Thanks much!
Kreso

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Any idea how to simulate online/offline situation on IPhone?

Post by Support Team » Tue Apr 12, 2016 2:01 pm

Hi Kreso,

Basically, all iOS applications are sandboxed and do only have access to the properties and data which Apple deems feasible to use within that sandbox. Therefore, I'm afraid changing system settings is not possible.

As you have already noticed, these limitations are related to Apple's security policy. There is unfortunately nothing we can do to achieve this intention.

Thank you for your understanding.

Sincerely,
Markus (S)
.
Image