Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect if Safari is disabled on iPhone

How can you detect whether Safari has been disabled by parental controls on the iPhone? I know it is possible because the App X3Watch refuses to work until Safari is disabled. As far as I can see there is no api for the parental controls, so what technique can be used for this?

like image 651
zorro2b Avatar asked Oct 15 '22 04:10

zorro2b


1 Answers

I haven't tested this, but is OS3.0 and later, you can detect if a URL can be opened by any application on the system using [[UIApplication sharedApplication] canOpenURL:myURL]. I'll betcha it will return NO if Safari is disabled.

like image 130
dgrijalva Avatar answered Nov 15 '22 08:11

dgrijalva