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
0
votes
1 answer

How to get the url path of Apple ODR resource?

I am new in Xcode and Swift. Currently working on a script dealing Apple's ODR: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/Managing.html#//apple_ref/doc/uid/TP40015083-CH4-SW1 I am…
inoxious
  • 313
  • 2
  • 6
  • 17
0
votes
1 answer

Add ODR resources programmatically

I am having list of files added as ODR resources to my Xcode project. When I create new files, I have to add them again as ODR Resources with ODR Resource Tags. I am getting the new files very frequently which I am adding it again and again. Is…
Gopinath V S
  • 91
  • 1
  • 11
0
votes
1 answer

iOS On Demand resources download fine - but they cannot be found in the main bundle by the app at the point I need to use them

I've gone through the documentation and all the questions on SO related to On Demand assets in iOS and can't find an answer so I'm hoping you can help. I have an app that was able to access files fine (specifically video mp4 files that were in a…
Wide Awake
  • 1,339
  • 1
  • 11
  • 18
0
votes
3 answers

Display inside an iframe a html file located outside of the www folder -- works in InAppBrowser or parsing the text

I managed to download some On-Demand Resources into my Cordova App using a custom plugin that I built. What I need to do now is load them inside an iframe in my App. Is this possible?? If they were located in the (sigh, read-only) www folder I could…
0
votes
1 answer

Download Apple hosted on-demand tagged resources via Javascript

I'm digging around Apple documentation about on-demand resources but I can't find this information.. Is it possible to fetch On-Demand Resources (eg. image, Javascript bundle) from a WKWebView via Javascript? My intent is to publish some (big)…
Gabe
  • 5,997
  • 5
  • 46
  • 92
0
votes
1 answer

Apples On Demand resources storage

I have got the code for downloading on Demand resources working correctly and I can get the path where the file is currently being stored and can access. My question is if I move the file to another location would the file later get deleted as usual…
dogwasstar
  • 852
  • 3
  • 16
  • 31
0
votes
1 answer

On demand resources functionality iOS

Please advise with the below. we are building iOS app using ODR, though I have few below questions. Request your assistance. How do we provide a prompt to download the game from the application? Context - We have total 25 games in our app and…
Aks
  • 41
  • 5
0
votes
0 answers

Xamarin.iOS: Problem with serving On-demand resource bundles from Visual Studio on Windows

I'm having a problem with Xamarin.Forms, iOS on-demand resources, and Visual Studio on Windows. Every time when I try to run an application with on-demand resources and trigger a download, I see an error message retrieved from…
0
votes
1 answer

On-demand resources not downloading from testflight

I have enabled OnDemandResources and checked the flow in the simulator. It's working fine. When made a test flight release, I'm able to see the ODR field enabled and 1 asset file is available. But when installed, the resources are not getting…
0
votes
1 answer

On-Demand Resources download but not accessible. Swif 4

In my iOS app I have a bunch of mp4 videos that I download at a certain time on the app using On Demand Resources. Using this tutorial: https://www.raywenderlich.com/520-on-demand-resources-in-ios-tutorial I download the resources like this at the…
RJB
  • 1,704
  • 23
  • 50
0
votes
1 answer

Using on demand resources, is it possible to download list of files if they are unknown at buildtime?

I want to get list of files by network at runtime. I am planning to host a lot of files (spritekit atlas) on my server. I want users to be able to download this files into the app. Since I don’t know at the moment how many files I am going to have,…
0
votes
1 answer

In-App Purchase / On-Demand Resources

Using on-demand resources in conjuction with iOS in-app purchases is understandable when resources are included with the application. But how do I add additional in-app purchases after the application is on the store? I'm not referring to the…
C. Outwin
  • 47
  • 1
  • 3
0
votes
1 answer

Why loading AssetBundle to memory after downloading and unpacking results crash in iPad due to lack of Memory?

We have just finished an 2D game in Unity 2D but struggling to fix some serious issues related to memory. Version of Unity used: Unity 2017.2.2f1 We are using AssetBundles and On Demand Resource to download the bundles (Textures,sprite sheets,bg…
0
votes
1 answer

beginAccessingResources won't start download progress second time

I am start to use ODR in my application. The code is fine for normal case except the following scenario: When the download process is break (press Home key), NSBundleResourceRequest.beginAccessingResources becomes never complete in second time. In…
Simon Lam
  • 1
  • 1
0
votes
0 answers

Not able to access on demand resource in other file using swift

I started to work on on demand resource. I'm able to download the resource but i'm not able to use those resources in other files. please some one help me in fixing this issue. PFA code. public class RBPExtensions: NSObject { class func…
Manasa
  • 21
  • 1
  • 3