Basically I want to create an app where you can select any of your installed apps and then restrict/unrestrict them. I have a great idea for an app, but need the user to be able to restrict an installed app with my own app for it to work.
I tried working with screen time restrictions but couldn’t get it to work somehow. Im doing this on IOS 17 Xcode. Also im pretty new to programming so I dont know a lot of stuff. I especially lack a lot of knowledge in screen time of iOS 17.
2
Answers
Apple does provide a mechanism where a limited number of apps can exclusively share information amongst themselves: "App Groups".
https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups
Using this, they can pass information to each other via
UserDefaults
https://developer.apple.com/documentation/foundation/userdefaults/1409957-init
or shared files via "shared containers".
With this, it seems like you could make these related apps set and read some limitations via config file.