Support our Sponsors:

Go Back   Touch Arcade > Developer Discussion > Public Game Developers Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2013, 06:19 PM
iamDeondrae iamDeondrae is offline
Junior Member
iPhone 5, iOS 6.x
 
Join Date: Aug 2013
Posts: 1
Default Unhappy In App Purchase - Help on Last stage - downloading content

i have successfully implemented IAP into my app however i am having a problem figuring out where the user is supposed to find the purchased content after they pay.

Using my test account when i click the buy button, it marks the IAP with a tick as if to show that its bought but then from there i cant find the content...


Can someone assist me as to what i need to add to my code and storyboard so the user is able to access their purchased content.... (The content will be several short videos available to the user through IAP)

From what i have read through all the tutorials, i think the code im missing is this:

-(void)paymentQueueSKPaymentQueue *)queue updatedDownloadsNSArray *)downloads
{
for (SKDownload *download in downloads)
{
switch (download.downloadState) {
case SKDownloadStateActive:
NSLog(@"Download progress = %f",
download.progress);
NSLog(@"Download time = %f",
download.timeRemaining);
break;
case SKDownloadStateFinished:
// Download is complete. Content file URL is at
// path referenced by download.contentURL. Move
// it somewhere safe, unpack it and give the user
// access to it
break;
default:
break;
}
}
}

However i also need a method to transfer the completed downloads back into the app and then link a view controller to those downloads/purchased content (How do i do this?)

Last edited by iamDeondrae; 08-17-2013 at 06:21 PM..
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 2012, TouchArcade.com, LLC.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Copyright 2008 - 2011, TouchArcade.com. Privacy Policy / DMCA Copyright Agent