Skip to content

Instantly share code, notes, and snippets.

@ElyDantas
Created January 18, 2019 23:08
Show Gist options
  • Save ElyDantas/8af503a1b37589f88f8e0a40b01dc7ee to your computer and use it in GitHub Desktop.
Save ElyDantas/8af503a1b37589f88f8e0a40b01dc7ee to your computer and use it in GitHub Desktop.
Swift App-Prefs:root-path
Swift
UIApplication.sharedApplication().openURL(NSURL(string:"prefs:root=General")!)
Swift 3
UIApplication.shared.openURL(URL(string:"App-Prefs:root=General")!)
Objective-c
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
and following are all the available urls
if let appSettings = URL(string:"App-Prefs:root=Privacy&path=LOCATION_SERVICES") {
if let appSettings = URL(string:"App-Prefs:root=com.mobilidade.minhabike&path=LOCATION_SERVICE") {
if let appSettings = URL(string:"App-Prefs:root=MUSIC&path=com.apple.Music:EQ") {
if let appSettings = URL(string:"App-Prefs:root=Privacy&path=LOCATION/com.mobilidade.minhabike") {
Gmail:
"googlegmail://co?subject=BoraPedalar-Fale+Conosco&[email protected]&body=exemplo"
Outlook :
“ms-outlook://[email protected]&subject=Subject&body=Message
App-Prefs:root=Privacy&path=MOTION
App-Prefs:root=Privacy&path=CAMERA
Battery: "Prefs:root=BATTERY_USAGE"
Siri: "Prefs:root=SIRI"
App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.lync2013.iphone
App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.Office.Outlook
UIApplication.shared.openURL(NSURL(string:"App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.Office.Word")! as URL)
Find the app you are looking for on the Apple AppStore. For this example, we’ll use Yelp: https://itunes.apple.com/us/app/yelp/id284910350?mt=8
Copy the app ID number. It’s just the numbers after the text “id” and before the “?”. So in this case, it is: 284910350.
Paste that ID number into this URL:
https://itunes.apple.com/lookup?id=284910350
This will download a file 1.txt
Search the output you get back for “bundleId”. The app’s bundle ID will be listed there: com.yelp.yelpiphone
* prefs:root=General&path=About
* prefs:root=General&path=ACCESSIBILITY
* prefs:root=AIRPLANE_MODE
* prefs:root=General&path=AUTOLOCK
* prefs:root=General&path=USAGE/CELLULAR_USAGE
* prefs:root=Brightness
* prefs:root=Bluetooth
* prefs:root=General&path=DATE_AND_TIME
* prefs:root=FACETIME
* prefs:root=General
* prefs:root=General&path=Keyboard
* prefs:root=CASTLE
* prefs:root=CASTLE&path=STORAGE_AND_BACKUP
* prefs:root=General&path=INTERNATIONAL
* prefs:root=LOCATION_SERVICES
* prefs:root=ACCOUNT_SETTINGS
* prefs:root=MUSIC
* prefs:root=MUSIC&path=EQ
* prefs:root=MUSIC&path=VolumeLimit
* prefs:root=General&path=Network
* prefs:root=NIKE_PLUS_IPOD
* prefs:root=NOTES
* prefs:root=NOTIFICATIONS_ID
* prefs:root=Phone
* prefs:root=Photos
* prefs:root=General&path=ManagedConfigurationList
* prefs:root=General&path=Reset
* prefs:root=Sounds&path=Ringtone
* prefs:root=Safari
* prefs:root=General&path=Assistant
* prefs:root=Sounds
* prefs:root=General&path=SOFTWARE_UPDATE_LINK
* prefs:root=STORE
* prefs:root=TWITTER
* prefs:root=FACEBOOK
* prefs:root=General&path=USAGE prefs:root=VIDEO
* prefs:root=General&path=Network/VPN
* prefs:root=Wallpaper
* prefs:root=WIFI
* prefs:root=INTERNET_TETHERING
* prefs:root=Phone&path=Blocked
* prefs:root=DO_NOT_DISTURB
* 电池电量 Prefs:root=BATTERY_USAGE
* 通用设置 Prefs:root=General
* 存储空间 Prefs:root=General&path=STORAGE_ICLOUD_USAGE/DEVICE_STORAGE
* 蜂窝数据 Prefs:root=MOBILE_DATA_SETTINGS_ID
* Wi-Fi 设置 Prefs:root=WIFI
* 蓝牙设置 Prefs:root=Bluetooth
* 定位设置 Prefs:root=Privacy&path=LOCATION
* 辅助功能 Prefs:root=General&path=ACCESSIBILITY
* 关于手机 Prefs:root=General&path=About
* 键盘设置 Prefs:root=General&path=Keyboard
* 显示设置 Prefs:root=DISPLAY
* 声音设置 Prefs:root=Sounds
* App Store 设置 Prefs:root=STORE
* 墙纸设置 Prefs:root=Wallpaper
* 打开电话 Mobilephone://
* 世界时钟 Clock-worldclock://
* 闹钟 Clock-alarm://
* 秒表 Clock-stopwatch://
* 倒计时 Clock-timer://
* 打开相册 Photos://
@"prefs:root",//Settings 设置(equals to@"prefs:" )
@"prefs:root=AIRPLANE_MODE",//Settings-Airplane Mode 设置-飞行模式 Switch to airplane mode(It seems not working well on iOS9.2.1)
@"prefs:root=WIFI",//Settings-WLAN 设置-无线局域网
@"prefs:root=Bluetooth",//Settings-Bluetooth 设置-蓝牙
@"prefs:root=MOBILE_DATA_SETTINGS_ID",//Settings-Cellular 设置-蜂窝移动网络
@"prefs:root=INTERNET_TETHERING",//Settings-Personal Hotspot 设置-个人热点
@"prefs:root=VPN",//Settings-VPN 设置-VPN (同样也是 设置-通用-VPN)
@"prefs:root=Carrier",//Settings-Carrier 设置-运营商
@"prefs:root=NOTIFICATIONS_ID",//Settings-Notifications 设置-通知
@"prefs:root=ControlCenter",//Settings-Control Center 设置-控制中心
@"prefs:root=DO_NOT_DISTURB",//Settings-Do Not Disturb 设置-勿扰模式
@"prefs:root=General",//Settings-General 设置-通用
@"prefs:root=General&path=About",//Settings-General-About 设置-通用-关于本机
@"prefs:root=General&path=SOFTWARE_UPDATE_LINK",//Settings-General-Software Update 设置-通用-软件更新
@"prefs:root=General&path=SIRI",//Settings-General-Siri 设置-通用-Siri
//@"prefs:root=General&path=Spotlight_Search",
//@"prefs:root=General&path=Spotlight検索",//Googled this,not working.
@"prefs:root=General&path=ACCESSIBILITY",//Settings-General-Accessibiilty 设置-通用-辅助功能
@"prefs:root=General&path=AUTO_CONTENT_DOWNLOAD",//Settings-General-Backgound App Refresh 设置-通用-后台应用刷新
@"prefs:root=General&path=AUTOLOCK",//Settings-General-(Auto-Lock) 设置-通用-自动锁定
@"prefs:root=General&path=DATE_AND_TIME",//Settings-General-Date&Time 设置-通用-日期与时间
@"prefs:root=General&path=Keyboard",//Settings-General-Keyboards 设置-通用-键盘
@"prefs:root=General&path=Keyboard/KEYBOARDS",//Settings-General-Keyboards-Keyboards 设置-通用-键盘-键盘
@"prefs:root=General&path=INTERNATIONAL",//Settings-General-Language&Region 设置-通用-语言与地区
@"prefs:root=General&path=VPN",//Settings-General-VPN 设置-通用-VPN
@"prefs:root=General&path=ManagedConfigurationList",//Settings-General-Profiles 设置-通用-描述文件
@"prefs:root=General&path=Reset",//Settings-General-Reset 设置-通用-还原
@"prefs:root=DISPLAY",//Settings-Display&Brightness 设置-显示和亮度
@"prefs:root=Wallpaper",//Settings-Wallpaper 设置-墙纸
@"prefs:root=Sounds",//Settings-Sounds 设置-声音
@"prefs:root=Sounds&path=Ringtone",//Settings-Sounds-Ringtone 设置-声音-电话铃声
@"prefs:root=TOUCHID_PASSCODE",//Settings-Touch ID&Passcode 设置-Touch ID与密码
@"prefs:root=BATTERY_USAGE",//Settings-Battery 设置-电池
@"prefs:root=Privacy",//Settings-Privacy 设置-隐私
@"prefs:root=LOCATION_SERVICES",//Settings-Privacy-Location Services 设置-隐私-定位服务
@"prefs:root=CASTLE",//Settings-iCloud 设置-iCloud
@"prefs:root=CASTLE&path=STORAGE_AND_BACKUP",//Settings-iCloud-Storage 设置-iCloud-储存空间
@"prefs:root=STORE",//Settings-iTunes&App Stores 设置-iTunes Store与App Store
@"prefs:root=PASSBOOK",//Settings-Wallet 设置-wallet 与 Apple Pay
@"prefs:root=ACCOUNT_SETTINGS",//Settings-Mail,Contacts,Calendars 设置-邮件、通讯录、日记
@"prefs:root=NOTES",//Settings-Notes 设置-备忘录
@"prefs:root=REMINDERS",//Settings-Reminders 设置-提醒事项
@"prefs:root=Phone",//Settings-Phone 设置-电话
@"prefs:root=Phone&path=CallerID",//Settings-Phone-Show My Caller ID 设置-电话-在被叫方显示本机号码
@"prefs:root=MESSAGES",//Settings-Messages 设置-信息
@"prefs:root=FACETIME",//Settings-FaceTime 设置-Facetime
@"prefs:root=MAPS",//Settings-Maps 设置-地图
@"prefs:root=COMPASS",//Settings-Compass 设置-指南针
@"prefs:root=SAFARI",//Settings-Safari 设置-Safari
@"prefs:root=MUSIC",//Settings-Music 设置-音乐
@"prefs:root=MUSIC&path=com.apple.Music:EQ",//Settings-Music-EQ 设置-音乐-EQ
@"prefs:root=VIDEO",//Settings-Videos 设置-视频
@"prefs:root=Photos",//Settings-Photos&Camera 设置-照片与相机
@"prefs:root=com.apple.iBooks",//Settings-iBooks
@"prefs:root=com.apple.podcasts",//Settings-播客
@"prefs:root=GAMECENTER",//Settings-Game Center 设置-Game Center
@"prefs:root=TWITTER",//Settings-Twitter 设置-Twitter
@"prefs:root=FACEBOOK",//Settings-Facebook 设置-Facebook
@"prefs:root=FLICKR",//Settings-Flickr 设置-Flickr
@"prefs:root=VIMEO",//Settings-Vimeo
@"prefs:root=WEIBO",// Settings-Weibo 设置-新浪微博
@"prefs:root=TENCENT_WEIBO", // Settings-Tencent Weibo 设置-腾讯微博
UIApplicationOpenSettingsURLString,//->@"app-settings:",App Authorization Setting Page(at least 1 authorize requested)
@"=====Apps=====",
@"shoebox:",//Wallet
@"x-web-search:",//Safari
@"pcast:",//Pod cast
@"applenews:",//Apple News
@"itms:",//iTunes Store With additional apis below,iTunes Store 下面是额外接口
//1.iTunes Store(View Album):itms://itunes.apple.com/us/album/id${ID}?app=itunes
//2.iTunes Store(View Artist):itms://itunes.apple.com/us/artist/id${ID}?app=itunes
@"ibooks:",//iBooks
@"gamecenter:",//Game Center
@"fmip1:",//Find My Phone
@"facetime-audio:(disappeared at Chinese version)",//facetime-audio,国行被阉割
@"facetime:",//Facetime
@"itms-watch:",//iWatch
@"itms-apps:",//App Store
//open by id:itms-apps://itunes.apple.com/app/id${ID}
@"x-apple-reminder:",//Reminders,提醒事项
@"mobilenotes:",//Notes
@"music:",//Apple Music
//1.View Album:https://itunes.apple.com/us/album/id${ID}?app=music
//2.View Artist:https://itunes.apple.com/us/artist/id${ID}?app=music
@"sms:",//Send a Message,发短信
@"message:",//Mail-Inbox,进入收件箱
@"mailto:",//Mail-Send a mail,发邮件
@"http://maps.apple.com/?q",//Maps,地图
@"videos:",//Videos,视频
@"findmyfriends:",//Find My Friends
@"tel:0123-45-6789",//Call 0123-45-6789,拨打电话0123-45-6789
@"telprompt:0123-45-6789",//Call 0123-45-6789 with alert,提示拨打电话0123-45-6789
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
<string>instagram</string>
<string>youtube</string>
<string>comgooglemapsurl</string>
<string>dbapi-1</string>
<string>dbapi-3</string>
<string>dbapi-8-emm</string>
<string>dbapi-6</string>
<string>fb</string>
<string>com-google-gidconsent-google</string>
<string>com-google-gidconsent-youtube</string>
<string>com-google-gidconsent</string>
<string>com.google.gppconsent.2.4.1</string>
<string>com.google.gppconsent.2.4.0</string>
<string>googlechrome</string>
<string>googlechrome-x-callback</string>
<string>hasgplus4</string>
<string>com.google.gppconsent.2.3.0</string>
<string>com.google.gppconsent.2.2.0</string>
<string>com.google.gppconsent</string>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fb</string>
<string>fbapi</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>fb-messenger-api</string>
<string>twitter</string>
<string>viber</string>
<string>whatsapp</string>
<string>wechat</string>
<string>line</string>
<string>instagram</string>
<string>kakaotalk</string>
<string>mqq</string>
<string>vk</string>
<string>comgooglemaps</string>
<string>googlephotos</string>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fbauth2</string>
<string>fb-messenger-api20140430</string>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
fb://profile – Open Facebook app to the user’s profile
fb://friends – Open Facebook app to the friends list
fb://notifications – Open Facebook app to the notifications list (NOTE: there appears to be a bug with this URL. The Notifications page opens. However, it’s not possible to navigate to anywhere else in the Facebook app)
fb://feed – Open Facebook app to the News Feed
fb://events – Open Facebook app to the Events page
fb://requests – Open Facebook app to the Requests list
fb://notes – Open Facebook app to the Notes page
fb://albums – Open Facebook app to Photo Albums list
Apple News applenews: Default
Audible Audible:// 379693831
Bing Bing:// 418435837
Box Box:// 290853822
Calendar App (Apple) calshow: Default
Contacts Journal cjournal:// 327685977
DayOne dayone:// 421706526
Documents rdocs:// 295798315
Draw­Some­thing DrawSomething:// 488627858
Dropbox dbapi-1:// 327630330
eBay (universal) eBay:// 282614216
Ever­note Evernote:// 281796108
Face­book fb:// 284882215
Fan­dango Fandango:// 307906541
Find Friends FindMyFriends:// 466122094
Find iPhone fmip1: 376101648
Flickr Flickr:// 328407587
Flip­board Flipboard:// 358801284
Garage­Band GarageBand:// 408709785
Google+ gplus:// 284815942
Google Mail googlegmail:// 422689480
GoodReader gropen:// 363448914
Google Earth kml:// 293622097
Google Photos googlephotos:// 962194608
Handbase Handbase:// 674161727
Hangouts (Google) com.google.hangouts:// 643496868
HBOGO HBOGO:// 429775439
iBooks itms-Books:// 364709193
IMDB IMDB:// 342792525
iMovie iMovie:// 377298193
INRIX Traffic inrixtraffic:// 324384027
iThoughts ithoughts:// 369020033
iTranslate itranslate:// 288113403
Kin­dle Kindle:// 302584613
Mail App (Apple) Mailto: Default
Mail App (Apple) message: Default
Mr.Reader mrreader:// 412874834
Music Music:// Default
MyTuner MyTunerRadio:// Default
Notes mobilenotes: Default
OneNote onenote-cmd:// 410395246
OpenTable OpenTable:// 296581815
Pan­dora Pandora:// 284035177
Pay­Pal PayPal:// 283646709
Pho­to­Sync PhotoSync:// 415850124
Photos App (Apple) Photos:// Default
Pin­ter­est Pinterest:// 429047995
Podcasts Podcasts:// 525463029
QuickOffice quickofficedoc:// 578386521
Quora Quora:// 456034437
Red­Laser RedLaser:// 312720263
Remote Remote:// 284417350
Reminders App (Apple) x-apple-reminder:// Default
Safari http://google.com Default
ScannerPro by Readdle spprint:// 395904807
Score­Cen­ter ScoreCenter:// 317469184
Skype Skype:// 304878510
Sound­Hound SoundHound:// 355554941
Spar­row Sparrow:// 417250177
Spo­tify Spotifiy:// 324684580
SQLed sqled:// 475312085
Trailers App (Apple) movietrailers: 471966214
TuneIn TuneIn:// Default
Twit­ter Twitter:// 333903271
Videos Videos:// Default
Watch itms-watch: Default
Waze Waze:// Default
WSJ WSJ:// 364387007
Yahoo Axis yaxis:// 506520874
Yelp Yelp:// 284910350
YouTube YouTube:// 544007664
Zap­pos Zappos:// 392988420
Zite Zite:// 419752338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment