Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Initial Install Tags usage and verification during Development

I am trying to use ODR in our application and have created Tags and grouped it under Initial Install Tags option under Prefetched.

  1. I am not sure how to verify this on the Simulator and on the Device using the Development Profile.
  2. Is TestFlight the only option to verify Initial Install Tag usage?
  3. 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 the request is not needed. Please correct me if I am wrong.
like image 884
andrew Avatar asked Oct 19 '22 03:10

andrew


1 Answers

I got ODR support implemented in our application using Initial Install Tags (Though I have not tested it using TestFlight).

  1. I am not sure how to verify this on the Simulator and on the Device using the Development Profile. -- I tested locally by embedding the Asset packs in the Bundle itself.
  2. Is TestFlight the only option to verify Initial Install Tag usage? -- Have not tested this yet. But, I think the answer is Yes.
  3. Do I have to use NSBundleResourceRequest even for resources tagged as Initial Install? -- Yes. There is no difference between how we fetch resources tagged under "Download Only On Demand", "Initial Install Tags" and "Prefetched Tag Order"

And I had made one change that made my app use the ODR content properly. I was having the NSBundleResourceRequest object as a local variable. It should have been an instance variable. Ref: https://iosguy.com/2015/09/18/on-demand-resources/

like image 133
andrew Avatar answered Oct 21 '22 00:10

andrew