Questions tagged [skdownload]

9 questions
5
votes
0 answers

How to find a SKDownload's transaction on the Mac?

On iOS, SKDownload has @property(nonatomic, readonly) SKPaymentTransaction *transaction which conveniently allows to finish a Transaction whenever a hosted content has been downloaded. On the Mac though, SKDownload doesn't have that, so I find…
StuFF mc
  • 4,137
  • 2
  • 33
  • 32
4
votes
0 answers

SKDownload problem after app goes to background

In my app, the download of content hosted with Apple goes well if the app is active. However, if it goes to background and sufficient time passes, when it becomes active again, SKDownload still has an active state, but no progress is being reported.…
Andriy Gordiychuk
  • 6,163
  • 1
  • 24
  • 59
3
votes
1 answer

How to retrieve an SKDownload of an already purchased content

The standard in app purchase flow when there is hosted content is: do the transaction when the transaction enters in "purchased" state, retrieve the SKDownload and start downloading when downloading is done, then we can declare the transaction as…
viggio24
  • 12,316
  • 5
  • 41
  • 34
2
votes
0 answers

StoreKit SKDownload Progress does not complete

I am currently working on an app which allows users to purchase downloadable content by Hosted by Apple, so far my code works in terms of the user can purchase and the download completes OK and the file is intact. However I want to display to the…
MonkeyBlue
  • 2,234
  • 6
  • 31
  • 41
1
vote
0 answers

Access contents of SKDownload after processing in-app purchase using SKPaymentQueue

I've been trying to access a downloaded SKDownload zip file after a successful in-app purchase as such: func paymentQueue(_ queue: SKPaymentQueue, updatedDownloads downloads: [SKDownload]) { downloads.forEach ({ (download) -> Void in switch…
KBog
  • 3,800
  • 1
  • 25
  • 31
1
vote
1 answer

Apple In-App Purchase with hosted content - doesn't download files

I created a simple in-app purchase product, with a single mp3 file in it as content. I set it up in itunes connect, uploaded the pkg file, everything went well - the product is recognized from within my app, the user can buy it, the confirmation…
1
vote
0 answers

IAP Apple hosted content download progress issue

Hi All. I have an app with IAP Apple hosted content. The SKDownload.progress works well, proceeding in 1% increments, up until about 0.8, after which my updatedDownloads: method stops getting called. Then after 3-5 minutes I get a…
0
votes
2 answers

How should I handle a failed SKDownload?

When handling SKDownload updates I'm not sure how to react to a .failed state. I've seen the guidance posted in Apple's Developer Forum, but that implies that I must wait until the user exits and relaunches the app to restart the download. Later…
RP-3
  • 684
  • 4
  • 22
0
votes
1 answer

In app purchase stops at paymentQueue: updatedTransactions:

I try using in-app purchases with content hosted on apple servers. The strange thing is that when retrieving list of transactions it says that none of them contains downloads. Currently my in-app state is "Ready to submit". Must it be submitted…
ashvardanian
  • 424
  • 1
  • 6
  • 17