{"id":42810,"date":"2024-04-10T15:28:05","date_gmt":"2024-04-10T19:28:05","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=42810"},"modified":"2024-04-10T15:28:05","modified_gmt":"2024-04-10T19:28:05","slug":"universal-macappstore-links","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/04\/10\/universal-macappstore-links\/","title":{"rendered":"Universal macappstore: Links"},"content":{"rendered":"<p><a href=\"https:\/\/lapcatsoftware.com\/articles\/2024\/4\/2.html\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/lapcatsoftware.com\/articles\/2024\/4\/2.html\"><p>The App Store app on macOS is the default handler of URLs with the <code>macappstore:<\/code> scheme. App Store preview web pages automatically open the App Store app by setting the location of an HTML <code>&lt;iframe&gt;<\/code> element to a <code>macappstore:<\/code> URL. My free open source app <a href=\"https:\/\/github.com\/lapcat\/StopTheMacAppStore\">Stop The Mac App Store<\/a> registers itself as the default macOS handler for the <code>macappstore:<\/code> scheme, thereby preventing Safari and Safari Technology Preview from automatically opening those URLs in App Store. If you click Cancel or press the escape key, the App Store app won&rsquo;t open.<\/p><p>[&#8230;]<\/p><p>I&rsquo;ve discovered that macOS Ventura and Sonoma changed how Safari handles App Store links, bypassing Stop The Mac App Store in some cases. Fortunately, I&rsquo;ve also discovered a solution to the problem. In this blog post I&rsquo;ll discuss both the problem and the solution. As a bit of a spoiler, let me first deflate the conspiracy theories: Apple wasn&rsquo;t specifically targeting Stop The Mac App Store, which is too obscure to be noticed by the corporate giant. My app never lost the ability to become the default handler of the <code>macappstore:<\/code> URL scheme. Rather, it seems that macOS Ventura started treating App Store URLs as <a href=\"https:\/\/developer.apple.com\/documentation\/xcode\/allowing-apps-and-websites-to-link-to-your-content\">universal links<\/a>[&#8230;]<\/p><\/blockquote>\n<p>It continues to be infuriating that macOS doesn&rsquo;t offer a way to opt out of Universal Links. I&rsquo;ve had to uninstall the Twitter and Mastodon apps because otherwise URLs for those services become unusable in my Web browser. I guess an alternative would be to switch from Safari to Chrome, which offers more control here.<\/p>\n<p>As for <code>macappstore:<\/code> links, I generally prefer to view them on the Web because:<\/p>\n<ul>\n<li>I can open multiple links in different tabs.<\/li>\n<li>I can search text and select\/copy it.<\/li>\n<li>I can see details, such as the available IAPs, without having to expand a separate section.<\/li>\n<li>The Mac App Store forgets which app was being viewed when it quits and has no persistent history to go back to recently viewed apps.<\/li>\n<\/ul>\n<p>Unfortunately, you need to use the App Store app to access all of the reviews.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/05\/24\/ivory-for-mac\/\">Ivory for Mac<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/04\/19\/disabling-universal-links\/\">Disabling Universal Links<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2011\/12\/13\/check-app-store-updates-with-a-url\/\">Check App Store Updates With a URL<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Jeff Johnson: The App Store app on macOS is the default handler of URLs with the macappstore: scheme. App Store preview web pages automatically open the App Store app by setting the location of an HTML &lt;iframe&gt; element to a macappstore: URL. My free open source app Stop The Mac App Store registers itself as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-04-10T19:28:09Z","apple_news_api_id":"25d1ce0c-2448-4574-87ec-0b398c9159cc","apple_news_api_modified_at":"2024-04-10T19:28:09Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AJdHODCRIRXSH7As5jJFZzA","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":[30,39,2223,2385,103,1310],"class_list":["post-42810","post","type-post","status-publish","format-standard","hentry","category-technology","tag-mac","tag-macappstore","tag-macos-13-ventura","tag-macos-14-sonoma","tag-safari","tag-universal-links"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42810","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=42810"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42810\/revisions"}],"predecessor-version":[{"id":42811,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42810\/revisions\/42811"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=42810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=42810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=42810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}