Skip to content

Instantly share code, notes, and snippets.

@phynet
Last active October 8, 2023 19:13
Show Gist options
  • Save phynet/471089a51b8f940f0fb4 to your computer and use it in GitHub Desktop.
Save phynet/471089a51b8f940f0fb4 to your computer and use it in GitHub Desktop.
@phynet
Copy link
Author

phynet commented Oct 28, 2016

Thanks @luismadrigal for the info, I will update the list when tested for objective-c (shoebox://)

Also, @jonny77221 I will check it out your contribution :D

@dimohamdy
Copy link

@phynet any update

@XweAponX
Copy link

XweAponX commented Jan 8, 2017

No url for Battery?

@antonjn
Copy link

antonjn commented Jan 19, 2017

Battery: "Prefs:root=BATTERY_USAGE"
Siri: "Prefs:root=SIRI"

@mikengyn
Copy link

mikengyn commented Feb 1, 2017

Using App-Prefs instead of just prefs is working in IOS 10.2. However i'm not sure if apple approves this or not.

@mahirekici
Copy link

App-Prefs is working in IOS 10.2

@phynet
Copy link
Author

phynet commented Mar 27, 2017

Thank you all for the collaboration. I've tested App-Prefs and it's working for Swift 3. You have the updated file now 💃

@andrewminchew
Copy link

Can you help me with this? I'm trying to write a workflow that jumps into the notifications settings for all my work apps in sequence so I can easily enable my work notifications at the start of each day. I've tried the following URL schemes but the only get me into the notifications, they don't go the extra step of opening the settings for the specified apps...

App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.lync2013.iphone
App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.Office.Outlook

i found the Bundle Name (?) using the app store look up url ex http://itunes.apple.com/lookup?id=

Can someone tell me what I'm doing wrong?

@phynet
Copy link
Author

phynet commented Mar 29, 2017

@andrewminchew you are in the right track. I've tested the scheme with an app that HAS notifications enabled (maybe that's the problem you have) and did open the notifications for that app. You need the bundleID pasted in path...

UIApplication.shared.openURL(NSURL(string:"App-prefs:root=NOTIFICATIONS_ID&path=com.microsoft.Office.Word")! as URL)

Finding an app's bundle identifier of any app:

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

source: https://kb.acronis.com/content/39368

@2Grey
Copy link

2Grey commented May 15, 2017

How can I use this schemes in Safari?

I tried to open link App-Prefs://root=General in Safari, and got:

Safari cannot open the page because the address is invalid.

@phynet
Copy link
Author

phynet commented May 16, 2017

@2Grey yo want to open a scheme from a safari website or navigator oriented app ? that's a little more complicated. I've never tried that, so I can't tell you how to do it. Let's hope someone else can help you with this.

@deanlyoung
Copy link

deanlyoung commented May 23, 2017

@phynet I made some more revisions/additions to keep things consistent and cleaner. See my fork for changes. Thanks!

edit: Also, a great way to find/test these is loading them into a Workflow. You can then also launch the shortcuts via the Widget or within the app.

@phynet
Copy link
Author

phynet commented May 25, 2017

Thank you for your colaboration @deanlyoung. I've updated the gist ;)

@nirmal98kumar
Copy link

Will my app be rejected if I upload to app store. Also does this work with ios 14+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment