iphone - Turn off mobile data in app -


i'm wondering if can turn off , on mobile data in app. example in settings menu there switch can turn off mobile data app. possible?

in way possible, depends want do.

you can not turn "mobile phone's mobile data option" off. not allowed.

however, can allow own app use mobile data or disallow. can switch in app preferences. made similar app using video play internet without real streaming. in case apple not allow (nor mobile provider) use mobile data. before start play m4a video, looked network , if mobile data, warn user switch wlan otherwise not play video.

in manner, can limit. learn how that, can check apple "reachability" sample app.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -