IOS privacy permissions and jump through openURL

After iOS 10, apple for user privacy requirements are very strict, had to help friends publish pure H5 APP, because the use of third parties without adding privacy permissions are not allowed to submit App Store. Here is to list the apple for the most common privacy, and usually we will develop the openUrl is used in this method key.

I. privacy authority

Of course, a friend will say, without privacy, let him collapse after log for good, often leads to the collapse of the can do so, but what it does not produce such as positioning collapse, is not directly positioning results, it requires his spelling.

IOS privacy permissions and jump through openURL
did not add access to address book permissions
< key> NSPhotoLibraryUsageDescription< /key> < string> /string> access to the album < < key> NSCameraUsageDescription< /key> < string> /string> access the camera < < key> NSContactsUsageDescription< /key> < string> access mail list < /string> < key> NSMicrophoneUsageDescription< /key> < string> /string> < access microphone; < key> NSAppleMusicUsageDescription< /key> < string> < /string> media access database; < key> NSLocationUsageDescription< /key> < string> /string> access location < < key> NSLocationWhenInUseUsageDescription< /key> < string> used during a visit to the position of the < /string> < key> NSLocationAlwaysUsageDescription< ; /key> < string> /string> < has access to location; < key> NSCalendarsUsageDescription< /key> < string> /string> access calendar < < key> NSRemindersUsageDescription< /key> < string> /string> access reminders < < key> NSMotionUsageDescription< /key> < string> access sports and fitness < /string> < key> NSHealthUpdateUsageDescription< /key> < string> access to health update & lt; /string> < key> NSHealthShareUsageDescription< /key> < string> /string> access to health share < < key> NSBluetoothPeripheralUsageDescription< /key> < string> /string> access to the Bluetooth < < key> NSSiriUsageDescription< /key> < string> access to Siri&l T; /string> < key> NSSpeechRecognitionUsageDescription<; /key> < string> access to voice recognition < /string>

These are just a few of the more common ones. Usually in development, and mobile phone data interaction, but the code is no problem, the emergence of unwarranted bug, you can consider whether the privacy permissions.

Two, openUrl

Using the following code enables quick dialing during development

NSString* phoneVersion = [[UIDevice currentDevice] systemVersion]; if (phoneVersion.floatValue < 10) before using [[UIApplication sharedApplication] openURL:[NSURL {//iOS10 "Tel://123456" URLWithString:@ ";} else {//iOS10 UIApplication sharedApplication] openURL:[NSURL URLWithString:@ after using the" options:@{} completionHandler:nil] "Tel://123456"];}

As long as the corresponding URL is given, the system can jump directly:

/ / call [NSURL URLWithString:@ "tel://123456 [NSURL URLWithString:@"] / / send SMS "sms://123456"] / / mail [NSURL "mailto://123456@163.com" URLWithString:@ to App Store [NSURL URLWithString:@] / / itms-apps:// / / Safari] visit. [NSURL URLWithString:@ http://www.baidu.com iBook [NSURL URLWithString:@] / / to the "itms-books://" Facetime [NSURL URLWithString:@ "] / / launch facetime:// //8, Map [NSURL map] call URLWithString:@" maps:// "//9, call the Music [NSURL URLWithString:@ //10]" music:// ", jump to the system settings interface before [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@ / / iOS10" prefs:root=LOCATION "options:@{} completionHandler:nil] [[UIApplication sharedA; / / iOS10 Pplication] openURL:[NSURL URLWithString:@ options:@{} completionHandler:nil] "App-Prefs:root=LOCATION"]; #pragma mark - the following is the set of corresponding jump / / [NSURL URLWithString:UIApplicationOpenSettingsURLString] //iCloud [NSURL URLWithString:@ set "App-Prefs:root=CASTLE" //WIFI [NSURL URLWithString:@ "App-Prefs:root=WIFI" URLWithString:@ "App-Prefs:root=Bluetooth" [NSURL / Bluetooth / cellular data [NSURL URLWithString:@] "App-Prefs:root=MOBILE_DATA_SETTINGS_ID" [NSURL "App-Prefs:root=NOTIFICATIONS_ID" URLWithString:@ / / notice] general [NSURL "App-Prefs:root=General" / / URLWithString:@ / / [NSURL URLWithString:@] on mobile phone "App-Prefs:root=General& path=About" [NSURL "] / / auxiliary function URLWithString:@ App-Prefs:root= General& path=AC CESSIBILITY "] / / date and time [NSURL URLWithString:@" App-Prefs:root=General& path=DATE_AND_TIME "]; / / keyboard settings [NSURL URLWithString:@" App-Prefs:root=General& path=Keyboard "]; / / URLWithString:@ App-Prefs:root= [NSURL display brightness and" DISPLAY "/ / [NSURL] wallpaper set URLWithString:@" App-Prefs:root=Wallpaper "] / / voice [NSURL URLWithString:@" App-Prefs:root=Sounds "//Siri [NSURL URLWithString:@" App-Prefs:root=Siri "] / / privacy [NSURL URLWithString:@" App-Prefs:root=Privacy "[NSURL URLWithString:@ App-Prefs:root=Privacy&" / / location "path=LOCATION"]; / / battery [NSURL URLWithString:@ "App-Prefs:root=BATTERY_USAGE" Store and App Store [NSURL //iTunes URLWithString:@ "App-Prefs:root=STORE"]

If you need to implement a jump between APP, you can read this article

Three, summary

This is just a record, convenient to find their own later, there are omissions, welcome to point out.