Menu

Screen Time's API never tells you which apps the user picked: storing tokens, shielding, and App Store privacy labels
📰

Screen Time's API never tells you which apps the user picked: storing tokens, shielding, and App Store privacy labels

DEV Community: ios·ayumu kitabayashi·3 days ago
#nGVQGR1V
#devtoios#devto#dev#tokens#selection
Reading 0:00
15s threshold

I'm Ayumu Kitabayashi, and I build minulo on my own. It's an iPhone app that hides Reels and Shorts. To block the official Instagram and YouTube apps, it uses Apple's Screen Time API (FamilyControls / ManagedSettings / DeviceActivity).

With this API, your app never receives the names of the apps the user picked. All you get are opaque values (tokens). That's a bit awkward when you're building a blocker, but it made filling out the App Store privacy labels honestly a lot easier. Here's the actual code and the places where I got stuck.

The app is React Native (Expo).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.