I've been using On Demand Resources for a non-consumable IAP and it's all worked pretty well until I realised something unexpected recently.
When testing on Xcode, the IAP is purchased and the content downloaded. Its status is "In Use" and I can access the content. However, the user can then exit the current screen, deallocating the view controller from which the NSResourceBundleRequest was called, at which point, the ODR status changes to "Downloaded".
I thought that when you try to access the content again, it should switch back to "In Use" and be available. However, this does not happen and the app says the content is not in the bundle.
Any ideas?
When testing on Xcode, the IAP is purchased and the content downloaded. Its status is "In Use" and I can access the content. However, the user can then exit the current screen, deallocating the view controller from which the NSResourceBundleRequest was called, at which point, the ODR status changes to "Downloaded".
I thought that when you try to access the content again, it should switch back to "In Use" and be available. However, this does not happen and the app says the content is not in the bundle.
Any ideas?