You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/11/02 16:55:15 UTC

[GitHub] [cordova-node-xcode] d4nshields commented on pull request #87: Add support for On Demand Resources tags on iOS

d4nshields commented on PR #87:
URL: https://github.com/apache/cordova-node-xcode/pull/87#issuecomment-1300901828

   > > Hi all,
   > > Quick question: even if we end up using this tool to tag ODR resources with Cordova, then how can we load those On-Demand resources in our App through Cordova?
   > > It looks like Apple only lets you access those ODR using their native API ([NSBundleResourceRequest](https://developer.apple.com/documentation/foundation/nsbundleresourcerequest)) and I haven't seen a Cordova plugin that does that for us..
   > > See:
   > > https://stackoverflow.com/questions/60955952/download-apple-hosted-on-demand-tagged-resources-via-javascript
   > > Thanks
   > > **PS.** **I ended up creating my own plugin** to download and load ODR (HTML 5 games in my case) from the file system into an iframe in the (Ionic Engine powered) Webview.
   > 
   > About this issue, did it require putting up a local in app web server in order to serve those games? Or is it enough to put the iframe source to the ODS game index.html?
   
   Hi, yes, usually for html5 payloads a webserver on the phone would be required.    But this is more a matter of the implementation of your specific application.
   
   ODRs can contain literally anything at all, and should be considered simply representations of tags and filesystem references from xCode's perspective.
   
   It is now nearing the end of 2022, ODR is more mature and more commonly a requirement of larger iOS apps, and I wonder if there has been any more recent discussion of merging, or a summary of the roadblocks preventing such?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org