on-demand-resources

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

孤街浪徒 提交于 2020-05-05 04:49:22
问题 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 simply point to ${cordova.file.applicationDirectory}/www/game.html ...but being them in the Library folder (eg. see path below) is there a way to display them inside an iframe? ('/var/mobile/Library/OnDemandResources/AssetPacks/2F2887A0-7B16-4S5D

Configure EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE in build pipeline to fetch iOS On-Demand resources from static server

只愿长相守 提交于 2020-05-04 10:46:38
问题 When I archive my iOS App for testing purposes I need to configure it to fetch On-Demand resources from a web server instead of Apple servers. For local development, during the Archive steps in Xcode, I simply choose "Host on Server" instead of "Embed in App" and enter the URL of the webserver where the ODR bundles are hosted. How can I configure that setting programmatically in a build pipeline though? I did read that I need to set EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE to false and add the URL

Configure EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE in build pipeline to fetch iOS On-Demand resources from static server

╄→尐↘猪︶ㄣ 提交于 2020-05-04 10:46:19
问题 When I archive my iOS App for testing purposes I need to configure it to fetch On-Demand resources from a web server instead of Apple servers. For local development, during the Archive steps in Xcode, I simply choose "Host on Server" instead of "Embed in App" and enter the URL of the webserver where the ODR bundles are hosted. How can I configure that setting programmatically in a build pipeline though? I did read that I need to set EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE to false and add the URL

Download Apple hosted on-demand tagged resources via Javascript

无人久伴 提交于 2020-04-03 02:34:56
问题 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) HTML+JS games on Apple servers as On-Demand tagged Resources and then fetch them via Javascript XHR calls or through a Cordova/Phonegap/Ionic plugin. In this way: We would not affect the App final bundle size including all the games Apple would be able

Download Apple hosted on-demand tagged resources via Javascript

假如想象 提交于 2020-04-03 02:33:47
问题 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) HTML+JS games on Apple servers as On-Demand tagged Resources and then fetch them via Javascript XHR calls or through a Cordova/Phonegap/Ionic plugin. In this way: We would not affect the App final bundle size including all the games Apple would be able

Download Apple hosted on-demand tagged resources via Javascript

痞子三分冷 提交于 2020-04-03 02:33:16
问题 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) HTML+JS games on Apple servers as On-Demand tagged Resources and then fetch them via Javascript XHR calls or through a Cordova/Phonegap/Ionic plugin. In this way: We would not affect the App final bundle size including all the games Apple would be able

Download Apple hosted on-demand tagged resources via Javascript

牧云@^-^@ 提交于 2020-04-03 02:32:07
问题 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) HTML+JS games on Apple servers as On-Demand tagged Resources and then fetch them via Javascript XHR calls or through a Cordova/Phonegap/Ionic plugin. In this way: We would not affect the App final bundle size including all the games Apple would be able

On demand resources in iOS 9 - how to find out exact location of downloaded resources?

被刻印的时光 ゝ 提交于 2020-01-12 08:05:51
问题 I'm trying to use ODR in my game which doesn't use xcassets. So, I've got a texture with a tag (e.g. "tutorial"), made it ODR in project settings and used the code below the get it downloaded: NSBundleResourceRequest *resourceRequest = [[NSBundleResourceRequest alloc] initWithTags:tags]; [resourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:^(BOOL resourcesAvailable) { if (resourcesAvailable) { // Upload the texture } else { [resourceRequest

Initial Install Tags usage and verification during Development

半世苍凉 提交于 2020-01-03 16:49:20
问题 I am trying to use ODR in our application and have created Tags and grouped it under Initial Install Tags option under Prefetched. I am not sure how to verify this on the Simulator and on the Device using the Development Profile. Is TestFlight the only option to verify Initial Install Tag usage? Do I have to use NSBundleResourceRequest even for resources tagged as Initial Install? My understanding of Initial Install Tag is that, it would be automatically downloaded with the app. So, I thought