Post

Replies

Boosts

Views

Activity

Ranking list friends with CloudKit?
Can I make a ranking list of some type with friends using CloudKit? I invite friend A and B. I can see the rankings of friend A and friend B. Friend A can see my ranking. Friend B can see my ranking. Friend B cannot see ranking of Friend A (and vice versa) unless it has shares its ranking with the other.
0
1
735
Jul ’23
NSBackgroundActivityScheduler running too soon
I have an array of activities that need to be run at a specific time. The run in a background helper app. The array is sorted on date/time. At 12:08:51 I add a new item in the array.. to run at 12:12. Upon creation the array is sorted again and the closest is added as an activity to a NSBackgroundActivityScheduler. However it runs at creation and a few times more before 12:12. The next automation Normal doesn't run at creation as activity (activity Normal is already in the array of activities). Why is this happening? And how can I fix it? Log: 12:12:15.664819+0200 Next Automation Normal on 2021-04-15 08:50:00 +0000 Code: }
1
0
1.3k
Apr ’21
Read file with System Network Extension from App Group
I have trouble with reading a file from an App Group with my System Network Extension. The app group container is found successfully. However the file read returns empty. In the app itself the same code runs fine and returns a string array of items found in the file. Code: func readFile() - [String] {         var jsonResult: [String] = []         guard let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: AppConstants.groupID) else {             fatalError()         }         let fileURL = containerURL.appendingPathComponent("file.json")         if let data = try? NSData(contentsOfFile: fileURL.path, options: .mappedIfSafe) as Data {             if let json = try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) {                 jsonResult = json as! [String]             }         }         os_log("jsonResult: %{public}@", jsonResult)         return jsonResult     } Log: default 09:42:19.486793+0200 app-network-extension container_create_or_lookup_app_group_path_by_app_group_ identifier: success default 09:42:20.105792+0200 app-network-extension jsonResult: ( ) Edit, after more digging: fileURL is different! App: file:///Users/me/Library/Group%20Containers/ SysExt: file:///private/var/root/Library/Group%20Containers/
2
0
1.3k
May ’21
Screen Time for your self
Can I use Screen Time's Managed Settings to block access to certain apps on just my device, without the parent control part because the user creates a setup for themselves and for their own device?
Replies
5
Boosts
0
Views
2.3k
Activity
Jul ’21
Xcode 12.5 on macOS 12: Code signing "MyAppExtension.appex" failed.
Signing code on macOS 12 with Xcode 12.5 doesn’t work properly for my iOS app.. a few seconds earlier the macOS App was signed properly. Xcode 13 also signs it properly. Feedback filed: FB9134464 (booting back to Big Sur solves it for now...)
Replies
12
Boosts
0
Views
5k
Activity
Jul ’21
Ranking list friends with CloudKit?
Can I make a ranking list of some type with friends using CloudKit? I invite friend A and B. I can see the rankings of friend A and friend B. Friend A can see my ranking. Friend B can see my ranking. Friend B cannot see ranking of Friend A (and vice versa) unless it has shares its ranking with the other.
Replies
0
Boosts
1
Views
735
Activity
Jul ’23
NSBackgroundActivityScheduler running too soon
I have an array of activities that need to be run at a specific time. The run in a background helper app. The array is sorted on date/time. At 12:08:51 I add a new item in the array.. to run at 12:12. Upon creation the array is sorted again and the closest is added as an activity to a NSBackgroundActivityScheduler. However it runs at creation and a few times more before 12:12. The next automation Normal doesn't run at creation as activity (activity Normal is already in the array of activities). Why is this happening? And how can I fix it? Log: 12:12:15.664819+0200 Next Automation Normal on 2021-04-15 08:50:00 +0000 Code: }
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’21
Read file with System Network Extension from App Group
I have trouble with reading a file from an App Group with my System Network Extension. The app group container is found successfully. However the file read returns empty. In the app itself the same code runs fine and returns a string array of items found in the file. Code: func readFile() - [String] {         var jsonResult: [String] = []         guard let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: AppConstants.groupID) else {             fatalError()         }         let fileURL = containerURL.appendingPathComponent("file.json")         if let data = try? NSData(contentsOfFile: fileURL.path, options: .mappedIfSafe) as Data {             if let json = try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) {                 jsonResult = json as! [String]             }         }         os_log("jsonResult: %{public}@", jsonResult)         return jsonResult     } Log: default 09:42:19.486793+0200 app-network-extension container_create_or_lookup_app_group_path_by_app_group_ identifier: success default 09:42:20.105792+0200 app-network-extension jsonResult: ( ) Edit, after more digging: fileURL is different! App: file:///Users/me/Library/Group%20Containers/ SysExt: file:///private/var/root/Library/Group%20Containers/
Replies
2
Boosts
0
Views
1.3k
Activity
May ’21
Does a System Network Extension increase In Review time?
Does a System Network Extension increase App Review's In Review time? Mine is stuck "In Review" for 24 hours now. If yes what is the average In Review time when you have a System Network Extension included in your app?
Replies
2
Boosts
0
Views
1.2k
Activity
May ’21
List of Focus types
Can you get a list of all the focus types? And subscribe to notification when the users or system on behalve of the user changes to a different Focus type? Would like to change something in my app to adapt to which Focus type the user is on.
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’21
Digital signatures available for Swift Packages?
Can we use digital signatures for our Swift Packages? Or is this only for XCFrameworks?
Replies
3
Boosts
0
Views
2k
Activity
Jun ’23
Declarative Net Request a new content-blocking API vs original content blocking api
Should we start using Declarative Net Request to block content and move away from the original content blockers?
Replies
0
Boosts
0
Views
1.1k
Activity
Jun ’21
Reload Mail Extensions
When the JSON file with all the rules is changed from the container app do you need to reload the content blocker like you need to do in Safari? If yes, how do you reload? And can you get the content blocker activation status?
Replies
0
Boosts
0
Views
958
Activity
Jun ’21