Posts

Post not yet marked as solved
0 Replies
337 Views
In XCode organizer, under reports section, Crashes info shows fine with call stacks but Disk writes, Energy and Hang reports sections are broken since Background Assets frameworks integration. Error msg: The operation couldn't be completed. ((extension in DVTProducts):DVTAppStoreConnect.AppExtension.(unknown context at $10beb2a18).AppExtensionError error 0.) Xcode failed loading app information. How to fix this error and get the reports under Disk writes, Energy and Hang reports section?
Posted
by tejram_k.
Last updated
.
Post not yet marked as solved
0 Replies
430 Views
In our app, We have to download 5000 assets in the Install/Periodic event. Obviously, we can't download them all in parallel. If we return all 5000 entries in the extension downloads function, will the system take care of queueing and downloading some 20 assets parallelly and take care of downloading all of 5000 assets? Or Should we return only 20 urls and after if got finished, from the finished call back we can repeatedly schedule the next 20 every time and can download all of 5000 assets? If we can't reduce the number of assets(like in our case 5000 entries), What is the recommended way of downloading it?
Posted
by tejram_k.
Last updated
.
Post not yet marked as solved
0 Replies
409 Views
I want to understand BADownloadAllowance , BAMaxInstallSize properties. Suppose my app size is 2 GB, and after install it will download 1 GB of content at start. And every month it might download 500MB of content. The 500MB will be cleared monthly. So total size it might go till 3.5 GB. In this case, I hope we need to define BADownloadAllowance - 1 GB (It should be Max of Install event content and Periodic event content, right? Or just Install event content?) BAMaxInstallSize - 3.5 GB / 3 GB ? Suppose at some month due to some more content, we send 1.5 GB periodic content. what happens now. As BADownloadAllowance is set to 1 GB, won't it download the complete content. will the framework restrict downloading the extra assets? Suppose we missed clearing last months 500 MB content, so next month will the framework restrict downloading another 500 MB content as the total size of app will go beyond BAMaxInstallSize ? Can someone please explain this ?
Posted
by tejram_k.
Last updated
.
Post marked as solved
1 Replies
618 Views
I want to run some code in withExclusiveControl and only when the downloads count is 0 Approach 1 manager.fetchCurrentDownloads { downloads, e in manager.withExclusiveControl { a, e in // Here we are in ExclusiveControl but checking for downloads.count == 0 might not give accurate value } } Approach 2 manager.withExclusiveControl { a, e in manager.fetchCurrentDownloads { downloads, e in // Here we can check for downloads.count == 0, but not actually in ExclusiveControl } } Can you please let me know how to achieve this?
Posted
by tejram_k.
Last updated
.
Post not yet marked as solved
2 Replies
860 Views
Is there any memory limit for Background Assets Download Extension? I am using a manifest file that is ~2.5MB and has ~15000 entries. I am trying to load them into an array but the process keeps getting killed, there is no error message. If I am loading ~1000 entries, it's working fine. Is there a way to increase the memory limit for Background Assets Extension?
Posted
by tejram_k.
Last updated
.
Post marked as solved
1 Replies
783 Views
Is it possible to trigger Local Notifications from Background Assets Extension to update users that Assets are downloaded successfully ? While I was calling UNUserNotificationCenter.current().requestAuthorization UNUserNotificationCenter.current().add getting below error Requesting authorization failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 159 - Sandbox restriction.} Adding notification request failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process.} Can you please suggest any other alternative to update Users after a download has been completed successfully?
Posted
by tejram_k.
Last updated
.