{"id":19004,"date":"2017-09-26T10:51:54","date_gmt":"2017-09-26T14:51:54","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=19004"},"modified":"2017-09-27T10:34:07","modified_gmt":"2017-09-27T14:34:07","slug":"ios-default-file-associations","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/09\/26\/ios-default-file-associations\/","title":{"rendered":"iOS Default File Associations"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/viticci\/status\/912426713954623488\">Federico Viticci<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/viticci\/status\/912426713954623488\"><p>As <a href=\"https:\/\/twitter.com\/viticci\/status\/893136424605757442\">expected<\/a>, one of the most common questions I&rsquo;m getting. iOS needs a new system for default file associations.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/ian_mcdowell\/status\/912460133753536512\">Ian McDowell<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/ian_mcdowell\/status\/912460133753536512\"><p>Turns out Google Drive registered as the owner of the &lsquo;public.data&rsquo; UTI. When they enabled LSSupportsOpenInPlace, they became the default opener for every file format who&rsquo;s owner does not support open in-place.<\/p>\n<p>It&rsquo;s a shame that Apple didn&rsquo;t put safeguards for apps that do this. As the developers of Office, our own apps won&rsquo;t open our own documents until we support opening in-place, which requires lots of changes to our open\/save logic.<\/p><\/blockquote>\n\n<p>Update (2017-09-27): <a href=\"https:\/\/twitter.com\/GabrielHauber\/status\/912466964940955648\">Gabriel Hauber<\/a> (via <a href=\"https:\/\/twitter.com\/juandesant\/status\/912907260237635590\">Juande SantanderVela<\/a>):<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/GabrielHauber\/status\/912466964940955648\"><p>Dropbox also registers for public.data  and public.content but doesn&rsquo;t set Handler rank to Owner - I think that&rsquo;s the key?<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Federico Viticci: As expected, one of the most common questions I&rsquo;m getting. iOS needs a new system for default file associations. Ian McDowell: Turns out Google Drive registered as the owner of the &lsquo;public.data&rsquo; UTI. When they enabled LSSupportsOpenInPlace, they became the default opener for every file format who&rsquo;s owner does not support open in-place. [&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":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","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":[47,1582,51,1432,31,1472,438,577],"class_list":["post-19004","post","type-post","status-publish","format-standard","hentry","category-technology","tag-dropbox","tag-files-app","tag-google","tag-google-drive","tag-ios","tag-ios-11","tag-launchservices","tag-microsoft-office"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19004","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=19004"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19004\/revisions"}],"predecessor-version":[{"id":19019,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19004\/revisions\/19019"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=19004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=19004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=19004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}