Download Apple hosted on-demand tagged resources via Javascript

后端 未结 1 1888
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 14:09

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, Javasc

相关标签:
1条回答
  • 2020-12-11 14:15
    1. It looks like it is possible to download a zip file, uncompress it and load it into the Cordova webview using a Cordova only solution (using cordova-plugin-file).
    2. Apple only lets you access those On-Demand Resources using their Native API, they don't have exposed those via an external API.

    So, in order to load ODRs in a Cordova App, we would need to create a custom plugin that calls the Native API that takes care of loading the On-Demand Resources (see NSBundleResourceRequest).

    Reply found in the Reddit Flutter community:

    https://www.reddit.com/r/FlutterDev/comments/ejmf3a/apples_odr_network_via_flutter/

    0 讨论(0)
提交回复
热议问题