{"id":3203,"date":"2023-06-08T19:27:59","date_gmt":"2023-06-08T23:27:59","guid":{"rendered":"https:\/\/michaelrowe01.com\/?p=3203"},"modified":"2023-06-08T19:28:00","modified_gmt":"2023-06-08T23:28:00","slug":"explore-enhancements-to-app-intents","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/explore-enhancements-to-app-intents\/","title":{"rendered":"Explore enhancements to App Intents"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"371\" data-attachment-id=\"3204\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/explore-enhancements-to-app-intents\/attachment\/%ef%a3%bfwwdc23-23\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\uf8ffWWDC23-23\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?fit=660%2C371&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?resize=660%2C371&#038;ssl=1\" alt=\"\" class=\"wp-image-3204\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-23.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>Widgets<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Widget configuration allows you to provide options on the \u201cback side\u201d of the widget &#8211; these are parameters, that creates an ordered list of parameters<\/li>\n\n\n\n<li>You define your scheme right in the app Intent code<\/li>\n\n\n\n<li>You can provide dynamic parameters, which are supported by queries &#8211; check out Dive in to App Intents from WWDC2022<\/li>\n\n\n\n<li>To migrate your widgets to app intents, via a single button.\u00a0 Once you do it, you can remove your definition file.\n<ul class=\"wp-block-list\">\n<li>You may have to adjust some of the resultant code<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Whenever your app is updated by the customer, it will automatically upgrade their intents<\/li>\n\n\n\n<li>Widgets can now perform actions<\/li>\n\n\n\n<li>App Intents can be used for Siri Shortcuts too &#8211; Bring your Widget to Life is a great session to catch up on this.<\/li>\n\n\n\n<li>Dynamic options in queries.&nbsp; So you can create queries that are dependent on other intent information via @IntentParameterDependency<\/li>\n\n\n\n<li>Array size, allows you to limit the size of a parameter so you can ensure things fit on the widget which is being displayed<\/li>\n\n\n\n<li>You can also use ParameterSummary to show a sequence of items, and including a new When function to show content under certain sizes<\/li>\n\n\n\n<li>Continue User Activity &#8211; allows you to position users in your app when they tap on your widget<\/li>\n\n\n\n<li>RelevantIntentManager is used to help surface your intent at the right spot and time for a user<\/li>\n<\/ul>\n\n\n\n<p>Developer experience<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Framework support allows you to place your intents in Frameworks via AppIntentsPackage to reduce compile time, code distribution size, etc.\n<ul class=\"wp-block-list\">\n<li>May need to refactor my Wasted Time App Intents<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>App Shortcuts in extension &#8211; you can create an AppShortcutsProvider so that your app does not to be launched when using your Shortcuts<\/li>\n\n\n\n<li>The compiler will extract app intent information and the a Metadata.appIntents &#8211; this process has been sped up in Xcode 15.<\/li>\n\n\n\n<li>Ability to continue an Intent in your app.&nbsp; So if you start an intent outside of your app, you can then enable ForegroundContinuableIntent conformance to enable this.<\/li>\n\n\n\n<li>Added support for Apple Pay in App Intents, this was enabled in iOS 16.5<\/li>\n<\/ul>\n\n\n\n<p>Shortcuts app integration<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use app intents in Shortcuts, App shortcuts, Siri Voice, Apple Watch Ultra Action Button, and Focus Filters<\/li>\n\n\n\n<li>And now you can add more integration with SwiftUI Apps Interactive Live Activities, and Interactive Widgets<\/li>\n\n\n\n<li>You should create a good ParameterSummary, make sure they read like a sentence.<\/li>\n\n\n\n<li>Use isDiscoverable as needed &#8211; especially if it is only valuable within your app itself.&nbsp; Like only in your interactive widgets<\/li>\n\n\n\n<li>You can also now provide progress via ProgressReportingIntent protocol<\/li>\n\n\n\n<li>Find actions can are easier to integrate with, add EntityPropertyQuery or EnumerableEntityQuery (this is easier, but is optimized for small number of entities)<\/li>\n\n\n\n<li>Intent description &#8211; has been updated with ResolvedValueName to be more descriptive based on the action being taken<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Widgets Developer experience Shortcuts app integration<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"hide_page_title":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,3],"tags":[649,109,680],"class_list":["post-3203","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-app-intents","tag-day-4","tag-wwdc23"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2aMa8-PF","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/comments?post=3203"}],"version-history":[{"count":1,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3203\/revisions"}],"predecessor-version":[{"id":3205,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3203\/revisions\/3205"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=3203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=3203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=3203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}