Post

Replies

Boosts

Views

Activity

SwiftData Class Inheritance
Hi, I'm considering using the new SwiftData class inheritance for a new app I'm building. I have a few questions: Is it working well enough for production? I have a number of different object types in my app. Some of them are very similar, and there's always a balance to be struck when it comes to splitting them into different types using class inheritance. Are there some good advice on when to use multiple classes instead of squeezing my object types into a single class? Is there advice against using class inheritance in multiple levels (3-4)? Claes
1
0
129
Jul ’25
Family Sharing needed on iOS16?
After watching the video "What's new in Screen API", I was convinced that the Screen Time API now opens up for a broader range of apps without the need to involve Family Sharing. Like the example app "Workload" they are using in the video, an app for an individual not involving Family Sharing at all (?) I have now built an app of a similar type, but Apple denied me the Family Controls entitlement "...as your app doesn’t utilize Family Sharing, which is required for Family Controls." I am confused here. Does anyone have more information and/or can explain to me? My, perhaps optimistic, view is that the entitlement request reviewer based their decision on iOS 15 rules rather than the additions made to iOS 16. And input and advice is much appreciated :-)
3
0
1.1k
Oct ’22
DeviceActivity setup
Hi! I'm playing around with the Screen Time API. I would like to let my app notify me every time I have used my device for 1 minute (any app). When I have been notified, I would like to reset the monitoring so that I will be notified again after another minute using my device. I'm not sure how to accomplish this. In the main app, I currently start monitoring the following event with a schedule: let event = DeviceActivityEvent(threshold: DateComponents(minute: 1)) let schedule = DeviceActivitySchedule(intervalStart: DateComponents(hour: 0, minute: 0, second: 1), intervalEnd: DateComponents(hour:23, minute: 59, second: 59), repeats: true) Then, in the Device Activity Monitor Extension, I restart the same monitoring once the threshold is reached in eventDidReachThreshold. However, eventDidReachThreshold is being called much more than once an hour. I have checked that I only have one monitoring event running, so duplicates does not seem to be a problem. So, my questions are: Does my approach look OK? What am I missing? Would this monitoring collect usage from all devices connected to the same Apple ID, i.e. my Mac, iPad, iPhones etc? If so, how can I make it only monitor usage on one of my devices (the iPhone running the app)?
2
0
1.2k
Jun ’22
SwiftData Class Inheritance
Hi, I'm considering using the new SwiftData class inheritance for a new app I'm building. I have a few questions: Is it working well enough for production? I have a number of different object types in my app. Some of them are very similar, and there's always a balance to be struck when it comes to splitting them into different types using class inheritance. Are there some good advice on when to use multiple classes instead of squeezing my object types into a single class? Is there advice against using class inheritance in multiple levels (3-4)? Claes
Replies
1
Boosts
0
Views
129
Activity
Jul ’25
ScreenTime API / DeviceActivity and multiple devices
I am using the DeviceActivity framework to let the user track their activity (so also for non FamilySharing users). For tracking to cover multiple devices, does the app need to be installed/running on all devices or can the OS report activity to the app on one device? I haven't found a way to do that...
Replies
2
Boosts
0
Views
1.3k
Activity
May ’23
Family Sharing needed on iOS16?
After watching the video "What's new in Screen API", I was convinced that the Screen Time API now opens up for a broader range of apps without the need to involve Family Sharing. Like the example app "Workload" they are using in the video, an app for an individual not involving Family Sharing at all (?) I have now built an app of a similar type, but Apple denied me the Family Controls entitlement "...as your app doesn’t utilize Family Sharing, which is required for Family Controls." I am confused here. Does anyone have more information and/or can explain to me? My, perhaps optimistic, view is that the entitlement request reviewer based their decision on iOS 15 rules rather than the additions made to iOS 16. And input and advice is much appreciated :-)
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’22
App Store propagation
When we release an app (or a new version of an existing app), does it always show up in the US App Store first and is then propagated to the others? Is App Store propagation documented somewhere?
Replies
0
Boosts
0
Views
703
Activity
Oct ’22
DeviceActivity setup
Hi! I'm playing around with the Screen Time API. I would like to let my app notify me every time I have used my device for 1 minute (any app). When I have been notified, I would like to reset the monitoring so that I will be notified again after another minute using my device. I'm not sure how to accomplish this. In the main app, I currently start monitoring the following event with a schedule: let event = DeviceActivityEvent(threshold: DateComponents(minute: 1)) let schedule = DeviceActivitySchedule(intervalStart: DateComponents(hour: 0, minute: 0, second: 1), intervalEnd: DateComponents(hour:23, minute: 59, second: 59), repeats: true) Then, in the Device Activity Monitor Extension, I restart the same monitoring once the threshold is reached in eventDidReachThreshold. However, eventDidReachThreshold is being called much more than once an hour. I have checked that I only have one monitoring event running, so duplicates does not seem to be a problem. So, my questions are: Does my approach look OK? What am I missing? Would this monitoring collect usage from all devices connected to the same Apple ID, i.e. my Mac, iPad, iPhones etc? If so, how can I make it only monitor usage on one of my devices (the iPhone running the app)?
Replies
2
Boosts
0
Views
1.2k
Activity
Jun ’22
Uncheck Cleared for Sale - what happens?
When you uncheck 'Cleared for Sale' for an auto-renewing IAP…I suppose it disappears from the iTunes Manage Subscriptions UI?Will it stop renewing for current subscribers?Will current subscribers be informed?Will current subscribers be able to restore the purchase?
Replies
2
Boosts
0
Views
1.7k
Activity
Nov ’21