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.
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)
@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.
great tutorial, i am getting problem to find out SKPaymentTransactionStatePurchased 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 @ SKPaymentTransationStatePurchased 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!
@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"
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!
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.
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 :)
@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?
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"?
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"?
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.
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?
@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 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"?
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.
rebello95 1 week ago
404 error for your source code
b4september 1 month ago
hey man how can i make the inapt purchase make banners go away?
maidireapple 1 month ago
Hey man !
It worked perfectly in my first try !
Thank you very much, your tutorial is too direct !
Bruno
Brazil
bcavalcante 1 month ago
Your vid is popular on Hanoi
rtfuentes819a 1 month ago
The best tutorial in the world!
pmatvienko 1 month ago
This vid is popular on Senegal
olbywong717c 2 months ago
Simple and works >>> /watch?v=_f309zA3yOM <<<
stefiprincess 2 months ago
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)
ChristmasRights 4 months ago
paymentWithProductIdentifiers is deprecated, what should I do ?
GreatGoldApps 5 months ago 5
Comment removed
Telinir 3 months ago
@GreatGoldApps Use paymentWithProduct instead. Replace the string with an SKProduct. I'm not entirely sure where to get the SKProduct from though.
Telinir 3 months ago
Comment removed
GreatGoldApps 3 months ago
This has been flagged as spam show
@Telinir Don' t worry, patmentWithProductIdentifier still works great
GreatGoldApps 3 months ago
@GreatGoldApps I have the same problem. Did you ever find out the answer?
alan120184 3 days ago
@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 5 months ago
@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.
Telinir 3 months ago
Comment removed
Telinir 3 months ago
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:)
MrChris8447 5 months ago
Dude... Your awesome. Seriously. Your tutorials have helped me make so many of the Design Arson apps. Thank you!
vgarguilo 5 months ago
build succeeded no warnings at all
LucasJayAppz 6 months ago
@JackDander
This isn't a tutorial on programming notation. Its completely unnecessary to overcomplicate things. --- Always fallow the KISS principle.
TheTasikBeyond 6 months ago
how do u set a price/change a price for what ur purchasing?
tardis59 6 months ago
great tutorial, i am getting problem to find out SKPaymentTransactionStatePurchased 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.
99indianboy 7 months ago
Is it possible to add @ SKPaymentTransationStatePurchased 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!
smoggersmog 7 months ago
@CelezteEzpinoza cuz your comment isn't some scam...dumb ass
cgossain 9 months ago
@CelezteEzpinoza dumb ass
cgossain 9 months ago
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....
payalgosar 10 months ago
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....
payalgosar 10 months ago
This has been flagged as spam show
Thank you....
its an amazing video...
i tried it out and it worked...
I hope you continue to make videos like this..!
payalgosar 10 months ago
This has been flagged as spam show
Thank you....
its an amazing video...
i tried it out and it worked...
I hope you continue to make videos like this..!
payalgosar 10 months ago
Great, thanx dude !
TheChimpFactory 10 months ago
will this tutorial help get me free magazines on Calcio Italia?
Donpatch88 10 months ago
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 10 months ago
@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"
ik2wxx 10 months ago
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!!!
anchoright 10 months ago
This has been flagged as spam show
Thank you for this tutorial. It helped me a lot.
hiro232323 11 months ago
Thany you for this tutorial. It helped me a lot.
hiro232323 11 months ago
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.
wooger0111 11 months ago
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!
zamzarvideo 1 year ago
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!
zamzarvideo 1 year ago
Can you please make another one but using auto-renew subscriptions.
Thanks
mysplash1 1 year ago
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:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
How to fix the problems?
mikeportnoy168 1 year ago
@mikeportnoy168 same error here...any help ? (Portnoy rulezzz)
ik2wxx 10 months ago
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.
JackDander 1 year ago
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.
Pumpy032 1 year ago
@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 1 year ago
@Pumpy032 Yes, but where is the boolean stored? In a plist file?
SimpleSDK 1 year ago
@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 1 year ago
@MacOSeX10 Exactly, but it depends where the value is stored.
SimpleSDK 1 year ago
@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....
orangegold1 5 months ago
@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.
epicprogrammer 1 month ago in playlist XCode Tutorial
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?
InvaderAlex08 1 year ago
Thank you for this tutorial.
buckingham84 1 year ago
This has been flagged as spam show
Your voice changed a lot...:) good video
James161997 1 year ago
This has been flagged as spam show
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"?
TexadaTube 1 year ago
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"?
TexadaTube 1 year ago
Comment removed
TexadaTube 1 year ago
Comment removed
TexadaTube 1 year ago
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.
ashlovemira 1 year ago
This has been flagged as spam show
So we have to provide a url/website to download? We cannot download it from itunes?
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?
Can
vphothisan 1 year ago
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?
vphothisan 1 year ago
work but i got the problem when product count is 0... dem... i wan to implement it for next update for my game...
ashlovemira 1 year ago
Great video! Very informative! :-D
chrisnharvey 1 year ago
Worked perfectly thanks so much :)
wilky1994 1 year ago
Also If I just change the integer like I said b4 woulde I need the (void)downloadFromURL?
ninelivesoftware 1 year ago
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?
ninelivesoftware 1 year ago
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 1 year ago
@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 1 year ago
@SimpleSDK but its content that has no need for a url. how can you download new content that doesnt need a website?
Techn0Junki3 1 year ago
@Techn0Junki3 So unlocking a local file? just use nsuserdefaults to save its purchased, then use your own methods to keep it unlocked.
SimpleSDK 1 year ago
@Techn0Junki3 Also, you add an in-app purchase in the itunes connect section.
SimpleSDK 1 year ago
This has been flagged as spam show
@SimpleSDK 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"?
TexadaTube 1 year ago
Nice job! I have been waiting for this for a long time! Thanks
brandflakeapps 1 year ago
How did you get the iPhone 4 if u bought the 3G S?
TheAppleReviewGuy 1 year ago
nice!
j0egas 1 year ago
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 1 year ago 9
@JayBB100 mee too :D
carcrazy123451 1 year ago