Post

Replies

Boosts

Views

Activity

Reply to How can DeviceActivityMonitor extension communicate with my main app?
The extension and the application are different processes so: They are 2 different instances because each one "lives" on a different process . You can use a shared userDefaults or any other persistency (you can share a database file and change it in one process and read from the other) Read this: [https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html) Good luck
Topic: App & System Services SubTopic: General Tags:
Feb ’24
Reply to Can a Network Extension display any UI or launch it's container app?
Hi Eskimo, I see that on iOS 15 with a network extension -displayMessage:completionHandler: has stopped working. It was working fine on iOS 14. It's marked as deprecated, I get this fix suggestion on Xcode: 'displayMessage(_:completionHandler:)' was deprecated in iOS 12.0: renamed to 'UILocalNotification' Can you confirm? Sounds like there is no alternative? (I guess that the fix suggestion that Xcode gives - "use UILocalNotification" is not correct)
Jan ’22
Reply to Providing Pre-Selections to FamilyActivityPicker?
Yes, with you decoded (the one you decoded from the userDefaults) `selectionToBlock = savedBlockers() You set the decoded data as the FamilyActivitySelection
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to How can DeviceActivityMonitor extension communicate with my main app?
The extension and the application are different processes so: They are 2 different instances because each one "lives" on a different process . You can use a shared userDefaults or any other persistency (you can share a database file and change it in one process and read from the other) Read this: [https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html) Good luck
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Application Hang issue
For me, this was happening when I run tests. Eventually after looking at the spin dump I discovered some issue with one of the pods I was using (With Cocoapods) removing that pod solved the issue
Replies
Boosts
Views
Activity
May ’23
Reply to FamilyActivitySelection customization | Screen Time API features iOS 16
OK, its just dark mode ;) Sorry
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Family Controls approval takes more than 3 weeks without response
Same here, its been a month. did anyone get a reply?
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to FamilyActivitySelection customization | Screen Time API features iOS 16
@kmart Thanks for the reply but I do see apps that have managed to change the background of the picker. attaching screenshot
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to I would like to create several schedules for an activity can I do that
Sorry, The post says I do not get the intervalDidStartEvent and the IntervalDidEnd But I would still like to hear a good approach for setting several schedules
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Problem loading icon for ApplicationToken with Label
Can you open a stackoverflow question or better explain your issue?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Issues in rendering DeviceActivityController
Can you open a stackoverflow question or better explain your issue?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Decode/Encode ApplicationToken | Screen Time API features iOS 16
These are all codable so you can just do this: var selectionToDiscourage: FamilyActivitySelection if let encoded = try? JSONEncoder().encode(self.selectionToDiscourage) { UserDefaults.standard.set(encoded, forKey: defaultsRestrictionsKey) }
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Can a Network Extension display any UI or launch it's container app?
Hi Eskimo, I see that on iOS 15 with a network extension -displayMessage:completionHandler: has stopped working. It was working fine on iOS 14. It's marked as deprecated, I get this fix suggestion on Xcode: 'displayMessage(_:completionHandler:)' was deprecated in iOS 12.0: renamed to 'UILocalNotification' Can you confirm? Sounds like there is no alternative? (I guess that the fix suggestion that Xcode gives - "use UILocalNotification" is not correct)
Replies
Boosts
Views
Activity
Jan ’22
Reply to SwiftUI List delete buttons don't work
You should add the code for "deleteConversion", otherwise it will very hard to help you
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22