Post

Replies

Boosts

Views

Activity

Reply to Screentime API Application Tokens
100% agree with you! Adding the possibility to customise the font for a FamilyControls's Label would also be really cool. Don't hesitate to file enhancement requests using Feedback Assistant. The more people ask, the faster it can be taken into account (hopefully).
Jun ’23
Reply to Can i get url scheme from application token?
No, you can't get that information from an ApplicationToken or through the Family Controls or Managed Settings frameworks. The only workaround I can think of is to find a way to ask your user to identify the ApplicationToken he or she just selected through the FamilyActivityPicker. If your user says he or she selected TikTok for example, you can "easily" find the matching url scheme - you will have to build your own custom list for those though.
Aug ’23
Reply to Block a category using ManagedSettings
You cannot initialize an ActivityCategoryToken directly. Instead, you must utilize the FamilyActivityPicker and obtain your category tokens via a FamilyActivitySelection. The example you provided is misleading for several reasons: The ellipsis "..." likely implies that the developer needs to figure out the implementation. However, this approach is problematic since it's not feasible to generate an ActivityCategoryToken from scratch. One must either retrieve it through a FamilyActivitySelection or decode it from a Data object. There's no method to determine if the ActivityCategoryToken instance you are dealing with belongs to the "Social" category. The only workaround would involve prompting the user to select the "Social" category in the FamilyActivityPicker and... trust him or her to do so.
Aug ’23
Reply to Syncing iPhone/IPad configurations
Good question! According to the documentation, "FamilyActivitySelection provides tokens that devices within the same Family Sharing group can use to identify applications.". There is a good chance that tokens might be shared between different devices. I guess you can try this fairly easily by saving a token to a JSON file on one of your devices then trying to decode it on another device. Let me know if that works!
Aug ’23