bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for content hosted by Apple for non-consumable products

masaldana2 opened this issue · comments

Platform

  • [x ] iOS
  • macOS
  • tvOS

In app purchase type

  • [ x] Consumable
  • [x ] Non-consumable
  • Auto-Renewable Subscription
  • Non-Renewing Subscription

Environment

  • [x ] Sandbox
  • Production

Hello!
I want to know how to I access the array of downloads after the item is purchased?

@masaldana2 Do you refer specifically to Content hosted by Apple for non-consumable products?

https://developer.apple.com/library/prerelease/content/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/CreatingInAppPurchaseProducts.html#//apple_ref/doc/uid/TP40013727-CH3-SW4

SwiftyStoreKit does not support this at the moment. I have tagged this as a feature request.

Implementation note: if I'm correct it should be done by supporting and exposing SKDownload in the completion block when making a purchase. More info here:

https://developer.apple.com/reference/storekit/skdownload

I have added a few lines into the framework to make it work. Any interest to implement it?

Any update on hosted content? waiting..... :-(

Hi everyone. Apologies for the very late reply on this one!

I started working on it. This is an initial reference implementation: #343

I haven't tested it but you can give it a try.

Hopefully I can finish this within one week.

Hi, Thanks for quick response :-)
i implemented your code and started testing..
till now looks good...

thanks
aura

I can't test this as I'm unable to upload hosted content. See my comment here.

Any ideas?

I have upload multiple hosted contents and testing your code since yesterday.
Your code works like a charm...
With help of NotificationCenter i am even able to get the progress bar working..
I used iTMSTransporter command tool to upload my content to itunes connect and test it.
https://stackoverflow.com/questions/30912572/itmstransporter-how-to-upload-content-in-in-app-purchase

This is now available on version 0.13.0.

Closing this issue. If there are any problems or questions feel free to reopen.

@bizz84 Is this feature still available? The readme says:

Note: SwiftyStoreKit doesn't yet support downloading content hosted by Apple for non-consumable products. See this feature request.