{"id":19108,"date":"2021-07-18T10:58:43","date_gmt":"2021-07-18T17:58:43","guid":{"rendered":"https:\/\/www.kith.org\/jed\/?p=19108"},"modified":"2021-07-18T12:43:17","modified_gmt":"2021-07-18T19:43:17","slug":"creating-an-ios-shortcut-to-launch-an-app-and-set-settings","status":"publish","type":"post","link":"https:\/\/www.kith.org\/jed\/2021\/07\/18\/creating-an-ios-shortcut-to-launch-an-app-and-set-settings\/","title":{"rendered":"Creating an iOS shortcut to launch an app and set settings"},"content":{"rendered":"\r\n<p>I finally got around to creating a Shortcut on my iPad to automatically set various settings when I want to launch a particular app, and it was pretty easy and straightforward, so I thought I would post about it.<\/p>\r\n<p>Background: When I launch the Simply Piano app, I\u2019ve been doing a couple of things manually: Turning off rotation lock, setting the volume fairly high. And while I\u2019m using the app, I often get distracted by notifications.<\/p>\r\n<p>So I opened up the Shortcuts app, and I tapped the <b>+<\/b> button to create a new shortcut, and I tapped the <b>Scripting<\/b> button to create a new sequence of steps to follow.<\/p>\r\n<p>Within Scripting, I set up the following items, by tapping icons and then setting parameters:<\/p>\r\n<ol>\r\n  <li>Turn Do Not Disturb On until Turned Off <sup>*<\/sup><\/li>\r\n  <li>Turn orientation lock Off<\/li>\r\n  <li>Set volume to 79% <sup>**<\/sup><\/li>\r\n  <li>Open SimplyPiano<\/li>\r\n  <li>Exit shortcut with Result <sup>***<\/sup><\/li>\r\n<\/ol>\r\n<p>Then I tapped the three-dots button in the title bar and gave the shortcut a name (\u201cStart Simply Piano). I also gave it an icon (used to be able to use an image for the icon, but I\u2019m not seeing the option to do that now). Then I tapped \u201cAdd to Home Screen\u201d.<\/p>\r\n<p>So now when I want to launch Simply Piano, I can tap the \u201cStart Simply Piano\u201d icon, and it will automatically set the settings as I want them and then launch the app. Pleasing.<\/p>\r\n<hr width=\"25%\" \/>\r\n<p>Notes:<\/p>\r\n<p><sup>*<\/sup> What I really wanted here was to turn Do Not Disturb on until I exit the Simply Piano app. But that doesn\u2019t seem to be an option. My second choice would be to have it turned on for (say) half an hour, but that also doesn\u2019t seem to be an option. So I set it to \u201cuntil Turned Off,\u201d because it\u2019s not a big deal if I forget to turn DND off on this device. \u2026Update: Unfortunately, turning on DND doesn\u2019t stop notifications from appearing, so this step doesn\u2019t do what I meant it to do. Not sure whether there\u2019s a way to use a shortcut to turn off all notifications from other apps.<\/p>\r\n<p><sup>**<\/sup> I was aiming to set volume to about 80%-85%, but the setting control is a slider, and it landed on 79%, and I didn\u2019t bother trying to get it more accurate than that.<\/p>\r\n<p><sup>***<\/sup> I\u2019m not sure whether I need this step; maybe just reaching the end of the shortcut would have the same effect.<\/p>\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[83,24],"tags":[],"class_list":["post-19108","post","type-post","status-publish","format-standard","hentry","category-apple","category-software"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/posts\/19108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/comments?post=19108"}],"version-history":[{"count":3,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/posts\/19108\/revisions"}],"predecessor-version":[{"id":19111,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/posts\/19108\/revisions\/19111"}],"wp:attachment":[{"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/media?parent=19108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/categories?post=19108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kith.org\/jed\/wp-json\/wp\/v2\/tags?post=19108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}