{"id":3045,"date":"2023-06-06T21:16:48","date_gmt":"2023-06-07T01:16:48","guid":{"rendered":"https:\/\/michaelrowe01.com\/?p=3045"},"modified":"2023-06-08T09:16:36","modified_gmt":"2023-06-08T13:16:36","slug":"meet-activitykit","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/meet-activitykit\/","title":{"rendered":"Meet ActivityKit"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"429\" data-attachment-id=\"3097\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/meet-activitykit\/attachment\/meet-activitykit-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?fit=1620%2C1053&amp;ssl=1\" data-orig-size=\"1620,1053\" 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=\"Meet-ActivityKit\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?fit=660%2C429&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?resize=660%2C429&#038;ssl=1\" alt=\"\" class=\"wp-image-3097\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?resize=1024%2C666&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?resize=300%2C195&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?resize=768%2C499&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?resize=1536%2C998&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?w=1620&amp;ssl=1 1620w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Meet-ActivityKit.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>This is all about Live Activities<\/p>\n\n\n\n<p>Overview<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Allow for glanceable ways of keep track of task or event.&nbsp; Have a defined start and end time.<\/li>\n\n\n\n<li>Can use either background or push notifications<\/li>\n\n\n\n<li>Dynamic Island can display two live activities at any time.&nbsp; They will show minimal presentation.<\/li>\n\n\n\n<li>You can press to expand to more information&nbsp;<\/li>\n\n\n\n<li>Now supported on StandBy Mode and on iPad&nbsp;<\/li>\n\n\n\n<li>It leverages Widget enhancement to add buttons or toggles.<\/li>\n\n\n\n<li>Use ActivityKit framework &#8211; it is declarative, very similar to using Home Screen Widgets.&nbsp; Only available after a discreet user activity.&nbsp; They are user-moderated like notifications. It must support both Lock Screen and Dynamic Island.<\/li>\n<\/ul>\n\n\n\n<p>Lifecycle<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The App goes thru different stages,\n<ul class=\"wp-block-list\">\n<li>Request<\/li>\n\n\n\n<li>Update<\/li>\n\n\n\n<li>Observer activity state<\/li>\n\n\n\n<li>End<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Request app is in foreground, configure initial content and configuration.\n<ul class=\"wp-block-list\">\n<li>Setup the update based on information and provide information on state (like when will it be stale).&nbsp; Reliance is also optional.<\/li>\n\n\n\n<li>Define if it is pushType for remote verses local<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Update\n<ul class=\"wp-block-list\">\n<li>Based on key things in the application you can send an update, you can also display alerts if the event is critical.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Activity state changes can happen at any time during the Live Activity\u2019s lifecycle (started, finished, dismissed and Failed) are the possible values.&nbsp; Based on the state changes, you can do cleanup and other activities.<\/li>\n\n\n\n<li>End\n<ul class=\"wp-block-list\">\n<li>Create a final content and provide that to the item<\/li>\n\n\n\n<li>Change the policy&nbsp;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Building Live Activity UI<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Need a widget configuration to describe the live activity.<\/li>\n\n\n\n<li>Need to define all three Dynamic Island UI\n<ul class=\"wp-block-list\">\n<li>Add CompactLeading, compactTrailing, Expanded and minimal views.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>When more than live activity is running, the system will decide which apps are shown in the dynamic island.<\/li>\n\n\n\n<li>Expanded presentation has multiple areas defined by the system. .leading, .trailing, .bottom space.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is all about Live Activities Overview Lifecycle Building Live Activity UI<\/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":[692,107,680],"class_list":["post-3045","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-activitykit","tag-day-2","tag-wwdc23"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2aMa8-N7","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3045","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=3045"}],"version-history":[{"count":2,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3045\/revisions"}],"predecessor-version":[{"id":3099,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3045\/revisions\/3099"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=3045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=3045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=3045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}