The Ultimate In-app Purchases Guide for iOS10 and Swift 3

Auto-renewable Subscriptions, Non-renewable Subscriptions, Consumables, Non-consumables & Virtual Currencies Demystified
4.3 (15 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
1,588 students enrolled
Instructed by Alex Nagy Development / Mobile Apps
Take This Course
  • Lectures 16
  • Length 3 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 9/2016 English

Course Description

Apples Subscription-based Pricing is a Game-changer! And YOU can benefit from it.

Subscription-based Pricing is a HUGE deal! Till recently it was limited to only a few categories, but yet again Apple will shake the App Industry by allowing any apps to use the subscription business model. You should use it immediately!

Okay, but implementing In-app Purchases can be a huge pain. And now that Swift 3 is out there are no real tutorials, wrappers or solutions out there. This is why I have created RebeloperStore, a powerful In-app Purchases Helper that will help you add any kind of IAP with just a fraction of the time and effort it usually takes.

With RebeloperStore you will be able to add in-app purchases to your app with ONE LINE OF CODE. Here's the code you need to add to buy an auto-renewable subscription with RebeloperStore:


And here's how you can check if an auto-renewable subscription has expired or not:

RebeloperStore.shared.verifyNonRenewablePurchase(.nonRenewableSubscription1) { (result, resultString) in if result { // Content Unlocked }

It's just too easy!

RebeloperStore supports all In-app purchase types:

  • consumables
  • non-consumables
  • auto-renewable subscriptions
  • non-renewable subscriptions

All of them have the same one-line approach!

And the best part is that it is written in Swift 3! You can rest assured that it will compile with the latest version of Swift.

But the fun doesn't stop there. As a BONUS I have included a Virtual Currency System right into RebeloperStore so you may handle coins, gems, coin-packs, swords, bombs and helmets with ease! Here's how to buy 50 gems (secondary Virtual Currency) with 70 coins (primary Virtual Currency):

RebeloperStore.shared.purchaseVirtualCurrency(50, ofVirtualCurrencyType: .secondaryVirtualCurrency, forPayableVirtualCurrencyAmount: 70, ofPayableVirtualCurrencyType: .primaryVirtualCurrency)

You may add as many Virtual Currencies as you like!

How awesome is that! And the features don't end here. RebeloperStore is truly all you need to add any kind of In-app Purchase into your app. RebeloperStore is the ultimate In-app Purchase helper.

Besides all these cool features, the reason why I truly love RebeloperStore is the reason I've started this description: auto-renewable subscriptions. 

In our opinion here at Rebeloper Subscription-based Pricing has been the Announcement of the Year! But before we dive into the details let’s talk about the current status of the App Industry. Free to Play rules everything. While this is a good way of earning money from apps it had some serious side effects on the developer community. The problem with Free to Play is that it cannot work for all kind of apps. It really works mainly on games and it mainly works only when implemented on a complicated and huge scale.

Free to Play was eating up the Middle Class of the developer community. It seemed that nothing will save us and we’ll be pushed out by the giants of the elite 1%. But the going for the subscription business model may give us a second chance. I personally have been waiting for this day for years. Why? Because the Subscription Based Business Model is the Holy Grail of Cash Flow.

The only one problem with subscriptions was that people didn’t necessarily wanted to subscribe to services or apps. Now that Apple is taking this model to the masses by introducing it on the App Store, we will see a massive adoption rate among users. It will no longer be weird to subscribe and pay each and every month. This time it will be something normal.

Be the first who changes his business model to adopt the Subscription Pricing and profit from being an early adopter.

Take a look at the free preview lectures below, and I will see you inside the course!

Change Log

1.0.4 - (18.02.2017)

  • Updated Documentation

1.0.3 - (07.01.2017)

  • Fixed "Restore Purchases" (RebeloperStore.shared.restorePurchases()) not storing retrieved purchases data into Keychain (files changed: RebeloperStore.swift - lines added: 949-951)

1.0.2 - (22.11.2016)

  • Added Documentation.pdf with link to the video documentation

1.0.1 - (31.10.2016)

  • Added "Cancel Auto-renewable Subscriptions" button (files changed: Main.storyboard; RebeloperStore.swift; RenewableShopViewController.swift)

1.0.0 - (26.09.2016)

  • Initial Release

What are the requirements?

  • You need to have a Mac
  • You need to be enrolled in the Apple Developer Program
  • Minimum to none Swift knowledge is required

What am I going to get from this course?

  • integrate any type of In-app Purchase (including Auto-renewable subscriptions) into an iOS app
  • set up any type of In-app Purchase in iTunes Connect
  • create a sophisticated Virtual Currency System that you can find in games such as Candy Crush Saga or Clash of Clans

Who is the target audience?

  • This course is meant for students who want an easy drop-in system to manage create and manage their in-app purchases and virtual currencies
  • This course is not meant for students who would like to lear the more deeper lever API of In-app Purchases
  • This course is meant for students who like one-line-of-code implementations; this time it is for In-app Purchases

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Welcome

A brief overview of what you will learn and why you should enroll in this course.


You will get your hands on a fully set up example project. All you will need to do is learn how to use it.

Section 2: In-app Purchases Demystified

You will learn how to set up Cocoapods and install 2 pods that help you use RebeloperStore.

Here is the content of the Podfile you'll be creating:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'SwiftySubscriptions' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks

  # Pods for SwiftySubscriptions
  pod 'SwiftyStoreKit', :git => '', :tag => '0.5.1'
  pod 'KeychainAccess', :git => '', :tag => 'v3.0.0'
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '3.0'



In depth lesson about In-app Purchases and Virtual Purchases used in RebeloperStore. 

Section 3: iTunes Connect Setup of the In-app Purchases
Creating Non-renewable Subscriptions in iTunes connect
Creating Auto-renewable Subscriptions in iTunes Connect
Creating Non-consumable Purchases in iTunes Connect
Creating Consumable Purchases in iTunes Connect
Section 4: Use RebeloperStore for all Your In-app Purchase Needs
Adding the Code for the Non-renewable Subscription
Adding the Code for the Auto-renewable Subscriptions
How to Cancel Auto-renewable Subscriptions
Adding the Code for the Non-consumable Purchases
Adding the Code for the Consumable Purchases
Section 5: Bonus: The Virtual Currency System
Setting up the Virtual Currency System
Adding the Code for the Virtual Currency System
Final Thoughts

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Alex Nagy, ★ REBELOPER ★

Teacher. Coder. Coffee drinker. I'm never more than a few inches away from something with an  logo.

iOS10, SpriteKit and Swift 3 expert... iOS, watchOS, tvOS and macOS game developer.

Alex is a freelance developer since 2010. He is the owner of the iOS game development studio Rebeloper. Rebeloper is the testing ground for all of his "rebel ideas". He likes to experiment with cutting edge development tools and monetization techniques. Alex is also great in Photoshop, After Effects, HTML5, CSS or almost anything you can throw at him. Recently he is a tvOS evangelist :)

Sandor believes that you have to have 3 things in place to have a successful app business:

  • clean code
  • awesome design
  • cutting edge monetization

He teaches these three things on Udemy since mid 2012 as an established and respected instructor. Currently his courses have more than 3700 students in total and counting.

Also he is the founder of an ambitious startup called: rebeloper. Here he teaches you how to make awesome iOS, watchOS, tvOS and macOS games that actually make you money.

"I was born to code, design & monetize. I do those every day in the name of rebeloper"

Ready to start learning?
Take This Course