I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
-
-
Save phynet/471089a51b8f940f0fb4 to your computer and use it in GitHub Desktop.
App-Prefs is working in IOS 10.2
Thank you all for the collaboration. I've tested App-Prefs
and it's working for Swift 3. You have the updated file now 💃
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?
@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
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.
@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.
Thank you for your colaboration @deanlyoung. I've updated the gist ;)
Will my app be rejected if I upload to app store. Also does this work with ios 14+
Using
App-Prefs
instead of justprefs
is working in IOS 10.2. However i'm not sure if apple approves this or not.