Posts

Post not yet marked as solved
5 Replies
1.2k Views
Hi all, I have a problem with retrieving a model collection from a deployment. I tried to implement it like it was shown in WWDC 'Use model deployment and security with Core ML - https://developer.apple.com/videos/play/wwdc2020/10152/' session and here - https://developer.apple.com/forums/thread/650464?answerId=614845022#614845022 but I found that beginAccesing method doesn't exist for MLModelCollection class. Then I used Apple's documentation for 'Retrieving a Model Collection from a Deployment - https://developer.apple.com/documentation/coreml/core_ml_api/retrieving_a_model_collection_from_a_deployment' and implement it like it is described, but status property of the collection model is always MLModelCollection.Status.syncing. Code: let coinModelCollection = MLModelCollection(identifier: "TestCoinDetector") coinModelCollection.isSynchronizationEnabled = true print("Model collection status \(coinModelCollection.status.rawValue)") if let coinModel = coinModelCollection.entries?["CoinDetector"] { // entries are always empty } I created the model collection in the Core ML Model Deployment dashboard with the same "TestCoinDetector" identifier and also created model deployment and uploaded mlarchive. I used the same team as for the project. I know that system itself is deciding when to download the model in the background, but more than 24 hours passed and the status is still syncing. Can someone tell me did I do something wrong or maybe I need to set some configuration to the project, add some Capability, add some permissions or something else? Thanks
Posted Last updated
.
Post not yet marked as solved
0 Replies
882 Views
We have the new requirement for our app, we want to fetch delivered notifications even though Notification permissions are turned off. We implemented and tested the solution where we are using getDeliveredNotifications(completionHandler:) method for fetching notifications and it seems that it can be done in this way. We are using normal push notification (not silent) with the background app refresh enabled.We want to be sure that we will have access to the all delivered notifications when we call getDeliveredNotifications(completionHandler:) method and the normal conditions are met: the internet is available, background app refresh is turned on. We tried to find documentation that will confirm that we can use background mode for fetching all delivered notifications when Notification permissions are disabled, can you confirm that this is a good way to achieve this?
Posted Last updated
.