Questions tagged [on-demand-resources]

On-demand resources (ODR) is introduced in iOS 9. ODR are app contents that are hosted on the Apple App Store and are separate from the related app bundle that you download. They enable smaller app bundles, faster downloads, and richer app content.

iOS 9 introduces On Demand Resources, enabling the efficient delivery of rich games and full featured applications using dynamically loaded content. Significantly reduce the time between purchasing and running an app from the App Store, while also decreasing the required storage space by downloading and retaining only content that is necessary. Dive into the latest enhancements in app packaging and learn the APIs to allow your app to acquire only its essential resources.

Find more here

100 questions
1
vote
0 answers

Cordova Cocoapods - Apple on demand resources

I have a Cordova application but I am struggling when building my IOS project. My application contains a lot of zip files that are not needed on app load. So I am using apple ODR for these resources. The problem is I don't want to use xcode to tag…
Gruaig
  • 11
  • 1
1
vote
0 answers

Unity : from Asset Bundles to On Demand Resources

I'm currently looking to implement On Demand Resource on my project. I already use Asset Bundle, but I'd want some of them to be On Demand Resource. I found this page https://docs.unity3d.com/2019.4/Documentation/Manual/AppThinning.html And there is…
1
vote
0 answers

NSBundle PathsForResources returning null after downloading On Demand Resource Bundle

My team is experiencing a very odd issue with Apple's On Demand Resources framework. It's a randomly occurring problem where a user will successfully download one of our resources yet when we try to access the path of this resource via…
1
vote
1 answer

BigQuery- how to use slots for my queries

I am trying to use slots to run my queries, so I asked from BigQuery to increase my quota after my request got approval (5 days!) I pressed on "buy slots" and select 400 (i have 500 available) and I thought that will be enough to make sure that my…
1
vote
1 answer

Do Prefetch Tags for iOS On-Demand Resources need to be requested?

According to Apple's documentation about Prefetched On-Demand tags: The resources start downloading after the app is installed. The tags will be downloaded in the order in which they are listed in the Prefetched tag order group. Do assets…
Andy Obusek
  • 12,614
  • 4
  • 41
  • 62
1
vote
1 answer

On-Demand-Resources download speed from AppStore vs TestFlight

I'm implementing Apple's On-Demand-Resources in my app and I'm testing it using TestFlight. Is there someone who can answer if download speed when using App Store hosting environment is higher than TestFlight environment? It takes 3-4 min to…
parbo
  • 243
  • 3
  • 7
1
vote
0 answers

Prevent Newly Submitted On Demand Resources From Overwriting Older Versions iOS

I'm using iOS ODRs to distribute various content to my app. I'm running into an issue that if I make adjustments to these asset bundles and release an update to my app, the older versions of the app will be downloading those new asset bundles as…
Julien S.
  • 214
  • 3
  • 9
1
vote
0 answers

Is there any way to stop purged/clean assets in on demand resources in iOS?

I have one big project that contains more then 22000+ images. and my ipa size is 400MB+ So I added On demand resource. it will working fine but after some time my downloaded assets purged by system... So my question is: 1) Is any way to stop…
Maulik
  • 21
  • 4
1
vote
0 answers

Size explanation for apple On Demand Resource?

As per apple documents total size on demand resource stored on app store for an app is no more than 20GB. But as resources are maintained version specific by apple, so this total size of 20GB is for all version or each version will have 20GB? For…
Sumeet Bajaj
  • 224
  • 2
  • 11
1
vote
1 answer

How do on demand resources "leave the bundle" and arrive on apple servers?

I'm looking into apples in demand resources and I'm confused about the actual flow. My application has a file named "file1" It has an on demand resource tag of "file1" When I run the app and open the debugger for disk I can see that tag "file1" has…
dubbeat
  • 7,706
  • 18
  • 70
  • 122
1
vote
1 answer

iOS On-Demand Resources - Download Only On Demand. Debuging

I'm using on demand resources for several videos in my app. I have tagged the resources, and put them in the "download only on demand" tag, in the Targets Resource Tags. I download the resources using NSBundleResourceRequest, and it all works great.…
RJB
  • 1,704
  • 23
  • 50
1
vote
2 answers

Update Stock_level in OCAPI

How I can update the inventory (stock_level) using (business manager API). I use the business manager API to retrieve products. I am able to retrieve the products but I am not sure how I can set its stock (stock_level). I have a special requirement…
1
vote
1 answer

Why does beginAccessingResourcesWithCompletionHandler throw unexpected state exception

I've received a few crash logs from users of my app regarding on-demand resources. They happen rarely and I cannot find a way to reproduce the issue. The reason for the crash is Unexpected state upon completion of…
Vladimir Grigorov
  • 10,903
  • 8
  • 60
  • 70
1
vote
1 answer

iOS is purging On-Demand resources downloaded mp3, how to prevent this?

iOS will purge assets after being downloaded as soon as it needs to free up some space. Changing the preservation priorities of the assets will not prevent the system from purging them as stated in the "Setting Preservation Priority" section…
Malloc
  • 15,434
  • 34
  • 105
  • 192
1
vote
1 answer

How to pause,resume and cancel active OnDemandResourcesRequest in Unity?

I am facing some issues with ODR (On Demand Resource) in Unity. When I am downloading some resources using OnDemandResourcesRequest and it's in progress,I am just killing the app by swiping it or moving to background, what I found is no progress in…