Added: 1 year ago
From: SimpleSDK
Views: 23,153
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (80)

Sign In or Sign Up now to post a comment!
  • Just FYI with iOS 5 being out, instead of saving files to the Documents folder, they need to be saved to the Caches folder or the app will get rejected.

  • 404 error for your source code

  • hey man how can i make the inapt purchase make banners go away?

  • Hey man !

    It worked perfectly in my first try !

    Thank you very much, your tutorial is too direct !

    Bruno

    Brazil

  • Your vid is popular on Hanoi

  • The best tutorial in the world!

  • This vid is popular on Senegal

  • Simple and works >>> /watch?v=_f309zA3yOM <<<

  • Can you extend this to show how to set up the app in iTunes Connect. I followed all the instructions (including uploading the binary and having it rejected) and I still can't test the in-app purchases (product identifiers is always null)

  • paymentWithProductIdentifiers is deprecated, what should I do ?

  • Comment removed

  • @GreatGoldApps Use paymentWithProduct instead. Replace the string with an SKProduct. I'm not entirely sure where to get the SKProduct from though.

  • Comment removed

  • @GreatGoldApps I have the same problem. Did you ever find out the answer?

  • @SimpleSDK

    Where you call the method [self downloadFromURL etc....];

    I change the value of an int:

    planeBaught = 2;

    an then I save it with a NSUserDeafults

    is it a safe way?

  • @RemixxCoD A jailbreaker could easily get your app that way. Personally, I would make a bunch of jumbled letters and set the value there using NSUserDefaults. That way it would be a little harder for the to cheat it out.

  • Comment removed

  • Hi, I have a problem. I uploaded my App but there is no In App Purchase shown in the Store. How can that be? I hope u can help me:)

  • Dude... Your awesome. Seriously. Your tutorials have helped me make so many of the Design Arson apps. Thank you!

  • build succeeded no warnings at all

  • @JackDander

    This isn't a tutorial on programming notation. Its completely unnecessary to overcomplicate things. --- Always fallow the KISS principle.

  • how do u set a price/change a price for what ur purchasing?

  • great tutorial, i am getting problem to find out SKPaymentTransactionStatePurch­ased state in switch case. My requirement is to find out this state after successfull purchase on basis of this i have to update some database value. Whenever i attempt to purchase any item which i have already purchased it gives me this message "You've already purchased this In-App Purchase but it hasn't been downloaded ". Please help me to solve this problem.

  • Is it possible to add @ SKPaymentTransationStatePurcha­sed to download several files, not just one mp3? And also add a function like "hide" a layer? Will it work thisway? I mean "one case" but several action in that. Thank you!

  • @CelezteEzpinoza cuz your comment isn't some scam...dumb ass

  • @CelezteEzpinoza dumb ass

  • hello.

    i tried this example...

    but its not showin the out put...

    in the log it shows no product available...and error encountered...

    can u help me out in tht....

  • hello.

    i tried this example...

    but its not showin the out put...

    in the log it shows no product available...and error encountered...

    can u help me out in tht....

  • Great, thanx dude !

  • will this tutorial help get me free magazines on Calcio Italia?

  • Thanks, but keep getting the following error when building to iPhone using XCode 4:

    CodeSign error: The entitlements file '/Users/info/Desktop/Purchaser­/Entitlements.plist' is missing

    But it's there, and I've even tried downloading your project - still with the same error.

  • @AIFinans The file has been enclosed as it would be on the Desktop. Select the Target and then correct the file path in "build settings" / "code signing entitlements" 

  • Dude, this is an awesome tutorial, thanks! What if I want to add several songs for in app purchase? How do I do this in plural? Thanks!!!

  • Thany you for this tutorial. It helped me a lot. 

  • I'm completely lost did you just make something for cydia? If you didn't please make something I can just install to get in app purchases for free.

  • Thank you so much! I looked everywhere online for guides for In App Purchases and they were all overly complicated an skipped steps. This one worked! I hope you continue to make videos like this!

  • Thank you so much! I looked everywhere online for guides for In App Purchases and they were all overly complicated an skipped steps. This one worked! I hope you continue to make videos like this!

  • Can you please make another one but using auto-renew subscriptions.

    Thanks

  • Thanks for the fantastic tutorial you provided. However, the In-App Purchase works fine on certain devices, but the some are not.

    Some devices appear the messages "No products available." and subsequently showed the message "An error encountered" in console window during testing period.

    So, what happened on the method below?

    - (void)productsRequest:(SKProdu­ctsRequest *)request didReceiveResponse:(SKProducts­Response *)response

    How to fix the problems?

  • @mikeportnoy168 same error here...any help ? (Portnoy rulezzz)

  • Maybe they don't teach these things anymore or you have been self taught which is great but commonly reoccurring things like strings and numbers are best put in things like #defines or enums. Something like

    #define INAPP_PURCHASE @"com.simplesdk.song"

    in this case. You would place them in the header or some other convenient place. You then use INAPP_PURCHASE instead of the NSString.

  • I use NSUserDefaults as apple recommends for unlocking levels. If you plan on having media as in app purchases don't use this, it will take up too much space, only for unlocks.

  • @iwin28647 For content, such as new game levels, I include them in my app, and instead of downloading a file when the payment request gos through it sets a Boolean value to yes, when the Boolean is set to yes the levels become playable by the user. Hope that helps :)

  • @Pumpy032 Yes, but where is the boolean stored? In a plist file?

  • @Pumpy032 Bad idea users with jailbroken devices can get in the files and change the boolean to yes and that way you lose money and thats bad!

  • @MacOSeX10 Exactly, but it depends where the value is stored.

  • @MacOSeX10 I do this too (keep my boolean var in the directories and check it every time the app is relaunched)! It saves time on the users end... btw jailbroken phones can download it for free no matter where you store it....

  • @MacOSeX10 or you can add "security keys" as I call them which have a specific huge value set when the boolean is true or false. If they change the boolean, but the security codes don't match the value, you could make the app crash. For example, if they had purchased the content, there could be a security key set to 102948, and if it's not purchased, the key would be set to 938473. If the key either doesn't match the boolean or is another number, they're a hacker and you would crash the app.

  • how would you make an in app purchase to remove iads? Do you need to make a whole new version of the app without ads? how do you tell xcode to download that version? where would you upload it to, to be downloaded?

  • Thank you for this tutorial.

  • How you make the proper settings for "com.simplesdk.song" are you submiting some special information in the iTunes Connect portal? what about selling two songs I will need to define a "com.simplesdk.song"?

  • Comment removed

  • Comment removed

  • want to ask question. there is a delay when we purchasing through in-apps purchase environment. How we gonna detect the delay until purchasing was success.

  • So we have to provide a url/website to download? We cannot download it from itunes?

    Can in-app purchased be gifted? If so, How?

    What about purchase verification? Do we have to create a website the does this checking? How to we verify?

  • work but i got the problem when product count is 0... dem... i wan to implement it for next update for my game...

  • Great video! Very informative! :-D

  • Worked perfectly thanks so much :)

  • Also If I just change the integer like I said b4 woulde I need the (void)downloadFromURL?

  • Great tutorial! Just one question, what if you don't want to download a file. All you need to do is just change an integer. Is this possible, and where would i put that information?

  • where did you get com.simplesdk.song from?

    and if i were to add more game levels this way, how could i? this way only seems to work with music

  • @Techn0Junki3 The reason I did music is because it was the easiest. Create your own methods like I did, except rename them and change the code to make a level unlocked.

  • @SimpleSDK but its content that has no need for a url. how can you download new content that doesnt need a website?

  • @Techn0Junki3 So unlocking a local file? just use nsuserdefaults to save its purchased, then use your own methods to keep it unlocked.

  • @Techn0Junki3 Also, you add an in-app purchase in the itunes connect section.

  • Nice job! I have been waiting for this for a long time! Thanks

  • How did you get the iPhone 4 if u bought the 3G S?

  • nice!

  • i still watch these videos even tho i dont have a clue what your onna bout and dont have a mac but still watch you vids hope i helped

  • @JayBB100 mee too :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more