{"id":39692,"date":"2023-06-09T14:47:49","date_gmt":"2023-06-09T18:47:49","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=39692"},"modified":"2023-06-09T14:47:49","modified_gmt":"2023-06-09T18:47:49","slug":"cloudkit-and-the-icloud-drive-switch","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/06\/09\/cloudkit-and-the-icloud-drive-switch\/","title":{"rendered":"CloudKit  and the iCloud Drive Switch"},"content":{"rendered":"<p><a href=\"https:\/\/stackoverflow.com\/questions\/61741680\/running-cloudkit-app-with-icloud-drive-disabled\">cyanide<\/a>:<\/p>\n<blockquote cite=\"https:\/\/stackoverflow.com\/questions\/61741680\/running-cloudkit-app-with-icloud-drive-disabled\"><p>When I disable iCloud drive [the application] stays, suggesting that access to iCloud is still available.<\/p><p>However, when iCloud drive is disabled, <code>CKContainer.accountStatus<\/code> returns <code>noAccount<\/code>, even though I am signed in. When I ignore that and run a query, it returns no records.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/blog.justtact.com\/disabling-icloud-drive-should-not-disable-cloudkit-access\/\">Jaanus Kase<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.justtact.com\/disabling-icloud-drive-should-not-disable-cloudkit-access\/\">\n<p>There is one major platform limitation I&rsquo;ve run into: when you disable iCloud Drive, this also disables iCloud (CloudKit) access to apps like Tact, even though the UI indicates otherwise.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/mastodon.social\/@aaron_pearce\/110510531924060601\">Aaron Pearce<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@aaron_pearce\/110510531924060601\"><p>From the WWDC CloudKit lounge:<\/p><p>As of iOS 17 and macOS Sonoma, disabling the iCloud Drive switch will no longer disable syncing in your app. It&rsquo;ll be controlled by the individual switch for your app.<\/p><p>This is such a good change.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/mastodon.social\/@agiletortoise\/110511672533059463\">Greg Pierce<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@agiletortoise\/110511672533059463\">\n<p>This is a big deal for sync on corporate devices that often have iCloud Drive disabled.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/01\/02\/overcast-keeping-its-servers\/\">Overcast Keeping Its Servers<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>cyanide: When I disable iCloud drive [the application] stays, suggesting that access to iCloud is still available.However, when iCloud drive is disabled, CKContainer.accountStatus returns noAccount, even though I am signed in. When I ignore that and run a query, it returns no records. Jaanus Kase: There is one major platform limitation I&rsquo;ve run into: when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-06-09T18:47:53Z","apple_news_api_id":"ca487f60-6431-4748-b6e5-975b80dd20d2","apple_news_api_modified_at":"2023-06-09T18:47:53Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Aykh_YGQxR0i25ZdbgN0g0g","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[916,913,31,2321,30,2385],"class_list":["post-39692","post","type-post","status-publish","format-standard","hentry","category-technology","tag-cloudkit","tag-icloud-drive","tag-ios","tag-ios-17","tag-mac","tag-macos-14-sonoma"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=39692"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39692\/revisions"}],"predecessor-version":[{"id":39693,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39692\/revisions\/39693"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=39692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=39692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=39692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}