Search Unity

Downloading Asset Bundles from Apple's Hosted Server

Discussion in 'iOS and tvOS' started by Nigey, Mar 15, 2016.

  1. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    Hi Guys,

    I've been staring at this for a few days now. How do you actually download asset bundles from the ios store? I'm using Soomla, and I've uploaded the asset bundles to the ios server. I've already confirmed actual purchases are working, just not the downloads of asset bundles. I've read these:

    http://docs.unity3d.com/Manual/iphone-Downloadable-Content.html

    https://developer.apple.com/library...al/StoreKitGuide/Chapters/DeliverProduct.html

    https://developer.apple.com/library..._Ref/index.html#//apple_ref/occ/cl/SKDownload

    The first one says you download from a url, which sounds pretty simple.

    string url = "http://somehost/somepath/someassetbundle.assetbundle";

    However I have no idea what the path for ios downloads would be. The second link says that the download is attached to the purchase confirmation as an SKDownload object.. However through Soomla I have no idea how to access that and download it?

    Can someone please point me in the right direction as I'm going crazy, lol.

    Thanks
     
  2. Olivier-Tache

    Olivier-Tache

    Joined:
    Feb 27, 2015
    Posts:
    21
    Hi @Nigey , have you finally found an answer to your question ?
     
  3. YoungBreath

    YoungBreath

    Joined:
    Sep 27, 2017
    Posts:
    4
    Leaving a comment here because I'm having the exact same problem with no answers. What I have gathered is that while I can't figured out how to download the hosted content from the in app purchase, I can use the On Demand Resources. This is the link for the documentation:

    https://docs.unity3d.com/Manual/AppThinning.html

    The general idea is that we leave the asset bundles as part fo the project, but we add an iOS tag that identifies them as On Demand Content. After this we export the Xcode project and make sure to enable "On Demand Resources", with this once we upload the app into Itunes connect, it will In fact, include the content but not as part of the application, but as an On Demand Resource that can be downloaded with a few lines of code.

    Even tough It seems like a straight forward process to follow, I would still like to know how to download stuff from the Itunes In App purchase hosted content, for one main reason, and it is that I don't want to be updating the build every-time that I have new DLCs.

    Kind Regards
     
  4. Nidhii

    Nidhii

    Joined:
    Jan 28, 2015
    Posts:
    26
    Facing the same problem. @YoungBreath any luck with on demand resources so far. I followed the same link & I am clueless right now. Please reply or point me in right direction. I am stuck on it for weeks.