If you’re reading this on iOS, it’s really interesting to me that clicking this link will slide open an Apple One signup UI — right on top of your Mastodon client!

Now That’s OS Integration™

https://one.apple.com/us/

Apple One

Bundle your Apple services and pay one convenient price with Apple One. Choose the plan that’s right for you.

Apple One
@cabel yeah, that was not what I was expecting when I clicked it
@cabel That is pretty neat! How do you think Apple implemented that? AppClip?
@TheJoeFin @cabel Great question, especially since the browser panel doesn’t even open first. It must be caught at a pretty low level? I’ll just float this to @stroughtonsmith 😂
@cabel @TheJoeFin simple enough! It looks like it opens an appstore:// URL scheme (or uses deep links for that domain), which iOS must handle transparently

@stroughtonsmith @cabel @TheJoeFin Specifically the magic url is: ams-ui://one.apple.com/us/?itcCt=pt%3D118354236%26ct%3DWebsite%26cid%3D1237825358

There’s a chunk of code in iOS/macOS’s URL handling logic with a lot of if-else-if-else-if blocks for magic urls with specific handling. Others include apps.apple.com, itunes.apple.com, apple.news, etc. (Something tells me Apple Media Services didn’t get the memo about Universal Links? 🙃)

@cabel @TheJoeFin @stroughtonsmith I do see a slide-over browser panel very quickly before it dismisses and I see the slide-up card.
@cabel @donw @cabel @TheJoeFin I wonder if the difference is one app is trying to open the link externally and the other internally in a web view.
@sanguish @cabel @TheJoeFin we could ask @paul but that feels like cheating (I’m using ivory)
@donw @sanguish @cabel @TheJoeFin Deep Links option under Browser section in app settings.
@paul @sanguish @cabel @TheJoeFin Oh interesting. Is there a reason it defaults off?
@donw @sanguish @cabel @TheJoeFin I don't like tapping on a link and getting shuffled off into some other app.

@donw @cabel @TheJoeFin @paul that’s what it is.

In @IceCubesApp I use the system browser and when it opens immediately.

Tell it to use the internal and you get the push then display

Solved

@cabel shame that they don’t offer the biggest plan in my country (even when it’s available in other contries in the region, so language is not a barrier)
@cabel Good thing Apple doesn’t favor its own apps and they give developers this same level of OS integration…😕
@cabel it worked from Toot! app, interesting.
@cabel I wonder if this is enabled by Apple Wallet.
@cabel A system-level paywall sheet. From Apple…
@cabel I wish it were smoother on MacOS!
@cabel In iOS 17 they’ll open it up as PaywallKit - another great reason to use IAP!