Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for content hosted by Apple for non-consumable products #128

Closed
5 tasks
masaldana2 opened this issue Jan 14, 2017 · 9 comments
Closed
5 tasks

Support for content hosted by Apple for non-consumable products #128

masaldana2 opened this issue Jan 14, 2017 · 9 comments
Labels
difficulty: intermediate this issue is tough, contributions welcome status: needs analysis community analysis is needed type: enhancement
Milestone

Comments

@masaldana2
Copy link

masaldana2 commented Jan 14, 2017

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?

@bizz84
Copy link
Owner

bizz84 commented Feb 4, 2017

@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

@bizz84 bizz84 changed the title How do I access the hosted content? Support for content hosted by Apple for non-consumable products Feb 4, 2017
@bizz84 bizz84 added this to the 0.9.0 milestone Feb 24, 2017
@bizz84 bizz84 added difficulty: intermediate this issue is tough, contributions welcome status: needs analysis community analysis is needed and removed type: question labels May 18, 2017
@bizz84 bizz84 modified the milestones: Nice to have, 0.9.0 May 18, 2017
@Vanyaslav
Copy link

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

@aaru
Copy link

aaru commented Jan 26, 2018

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

@bizz84
Copy link
Owner

bizz84 commented Jan 26, 2018

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.

@aaru
Copy link

aaru commented Jan 29, 2018

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

thanks
aura

@bizz84
Copy link
Owner

bizz84 commented Jan 29, 2018

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

Any ideas?

@aaru
Copy link

aaru commented Jan 30, 2018

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

@bizz84
Copy link
Owner

bizz84 commented Jan 31, 2018

This is now available on version 0.13.0.

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

@bizz84 bizz84 closed this as completed Jan 31, 2018
@getaaron
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: intermediate this issue is tough, contributions welcome status: needs analysis community analysis is needed type: enhancement
Projects
None yet
Development

No branches or pull requests

5 participants