Swift - In App Purchase Tutorial

preview_player
Показать описание

Be sure to subscribe for more tutorials!

Рекомендации по теме
Комментарии
Автор

Thank you for being so thorough!! Your walk-through really helped me to understand everything that was needed (from developer center and iTunes Connect down to Xcode and running the app on my device). You even explained the error one gets when trying to purchase using iOS Simulator. Your code is dense, but your tutorial really helps!

mdsg
Автор

Thank you for doing the tutorial, I have not tried it yet, but it definitely gives me a good start. Thank you.

ladyharriet
Автор

Thanks for the tutorial! It explained a lot

jersey-dude
Автор

take it easy on the "Enter" bro you'll break your shit lol

Azcn
Автор

Great tutorial. How do you reset the purchase to test it more than once?

DanKardell
Автор

It does not work for me.. I have also tried copy/paste your code but the adBanner doesn't get removed. I the println window i get the same error after doing everything you did also.

FailFunTV
Автор

You're the best! Thank you very much!

ReeceKenney
Автор

Oh! this is a great tutorial!!
I found a solution from your tutorial!!
Thanks a million Seemu~ :D

generalcola
Автор

Great tutorial, but nowhere near complete enough. If i buy a removeAds IAP on my app using this code, it won't disappear forever. It disappears once i enter the scene again after reloading the app. What about showing people where you set a setBoolForKey so you can consistently check it the purchase has been made, and do stuff based on that in viewDidLoad on every single view in your app? That's my problem. I don't know how to implement something that checks if the user has already purchased

danieldelouya
Автор

Should consumables be visible in productsRequest? Manually adding to the product list array doesn't seem like the best approach. I have three products: 2 consumables and 1 non-consumable. The 2 consumables are not visible.

davidwilliamson
Автор

Can't seem to get it to work. The last thing that prints to my console is the product information, (price, localizedDescription, etc.) so it's retrieving it, but then once I click on the button nothing happens.

KJTrey
Автор

What if the Ad is in another view, what should I do?

renatonobre
Автор

How can you restore consumable item? thanks your video.

imcloudwu
Автор

how to know if the user already purchased the app on function viewDidLoad? My IAP is of type non-consumable.

JirsonT
Автор

The restore purchases button does not seem to be working for me. It crashes with the error "Unexpectedly found nil while unwrapping optional value". I have the exact same code as you do except for two things:
    1. I'm writing the code in SpriteKit on the GameScene file, not the View Controller file. 
    2. I had to downcast all the "as" with "!" because it was throwing errors. 

Could this have anything to do with my problem?


Also it seems to be running the code for the "payment queue / updated transactions" func instead of the restore completed func

nickpacini
Автор

My IAPS aren't working because of Swift 3? I double checked and everything. What changes in Swift 3. Do tell!

bincbrega
Автор

Great video. I've come across from xamarin and it's almost identical. Great intro to getting it all up and running, so great work.

djvoracious
Автор

Seemu... It seems like the restore purchases button works without having to enter the iTunes password when the login pops up. If i just press cancel it still restores the purchase. How can i make it wait for password validation??

scotthenderson
Автор

when i hit restore i get this in the console
add payment
nil
Default
nil
Default
and nothing restores

ActorCliveDancey
Автор

How are the user purchased persisted? This is done by apple with StoreKit or create your own persistence mechanism like AWS cloud table storage. 

randalltomes