{"id":2273,"date":"2018-09-14T04:05:40","date_gmt":"2018-09-14T08:05:40","guid":{"rendered":"http:\/\/www.rexfeng.com\/blog\/?p=2273"},"modified":"2018-09-14T04:05:40","modified_gmt":"2018-09-14T08:05:40","slug":"ios-12-siri-shortcuts","status":"publish","type":"post","link":"https:\/\/www.rexfeng.com\/blog\/2018\/09\/ios-12-siri-shortcuts\/","title":{"rendered":"iOS 12 Siri Shortcuts"},"content":{"rendered":"<p>The latest update (v1.3.6) of my iPhone app, <a href=\"https:\/\/itunes.apple.com\/us\/app\/pomodoro-pro\/id966415847?ls=1&amp;mt=8\">Power Focus<\/a>, passed app review today! The App Store review turnaround is amazing nowadays. Super quick.<\/p>\n<p>My app includes minimal iOS 12 Siri Shortcuts support. Watching the <a href=\"https:\/\/developer.apple.com\/videos\/play\/wwdc2018\/211\/\">WWDC session<\/a>, there&#8217;s two ways to add Siri Shortcuts support:\u00a0<a href=\"https:\/\/developer.apple.com\/documentation\/foundation\/nsuseractivity\">NSUserActivity<\/a> &amp;\u00a0Intents. I went with the former since I didn&#8217;t need custom Siri UI.<\/p>\n<p>Of different online resources,\u00a0<a href=\"https:\/\/medium.com\/@TonyMew\/tutorial-adding-ios-12-siri-shortcuts-to-your-app-easy-way-edb84fcac66e\">Anton&#8217;s medium post<\/a> was really helpful as it covers the essentials of using\u00a0NSUserActivity. With\u00a0NSUserActivity, the important parts are donating Shortcuts during app usage and handling them in your App Delegate. That&#8217;s it.<\/p>\n<p>The experience of implementing minimal iOS 12 Siri Shortcuts was painless and I would recommend your app using\u00a0NSUserActivity to inform iOS when key actions occur.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest update (v1.3.6) of my iPhone app, Power Focus, passed app review today! The App Store review turnaround is amazing nowadays. Super quick. My app includes minimal iOS 12 Siri Shortcuts support. Watching the WWDC session, there&#8217;s two ways to add Siri Shortcuts support:\u00a0NSUserActivity &amp;\u00a0Intents. I went with the former since I didn&#8217;t need [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1029],"tags":[1409,966,471,1412,1411,1410],"class_list":["post-2273","post","type-post","status-publish","format-standard","hentry","category-programming","tag-1409","tag-ios","tag-iphone","tag-pomo","tag-shortcuts","tag-siri"],"_links":{"self":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":1,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":2274,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2273\/revisions\/2274"}],"wp:attachment":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/tags?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}