How To Use In-App Purchases with StoreKit 2

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • In this video, we are going to implement a simpler solution for adding in-App purchases to your app using modern concurrency and async patterns from Swift.
    Buy Me Coffee
    buymeacoffee.c...
    We are going to cover the following topics
    - the new Product API
    - managing transactions
    - listening for transaction updates
    - testing in-app purchases in Xcode using storekit configuration files
    - how the restore purchases work.
    Source for this project available in my Github repo
    github.com/olo...
    Shot with Sony ZV-E10
    amzn.to/3uVzPQt
    Sigma 16mm f/1.4 DC DN
    amzn.to/3AgH1d1
    Rode MicroVideo Microphone
    amzn.to/3ccVRYR
    SanDisk 128GB Extreme PRO
    amzn.to/3RF9gZD
    My Workstation Setup
    Macbook Pro 16 inch M1 Pro
    amzn.to/3OdBqb7
    Samsung 28-Inch 4K UHD Led-Lit Monitor
    amzn.to/3Od1t27
    USB C to HDMI Cable 4K
    amzn.to/3REVpBe
    Apple Magic Keyboard with Touch ID and Numeric Keypad
    amzn.to/3Pwm6HF

Комментарии • 35

  • @bruhmoment3731
    @bruhmoment3731 Год назад +14

    FINALLY a store kit 2 tutorial on RUclips! It's amazing how there are so few store kit 2 tutorials on the internet.

  • @gregburkett5676
    @gregburkett5676 6 месяцев назад +1

    I have been looking for weeks for a decent tutorial on store kit 2. Your video walked me through step by step with great detail and insights. Thank you!!

  • @NekoNihongo
    @NekoNihongo Год назад

    Thank you! The best video I could find is a comprehensive tutorial on how to implement in-app purchases in SwiftUI.

  • @Kyronsk8
    @Kyronsk8 Год назад +2

    How would I go about modifying this to be for a consumable item. I can’t find much information on the consumable side.

  • @snoowsun
    @snoowsun Год назад

    thank you ! Solved the problem that was bothering me Thank you so much for sharing.

  • @gregburkett5676
    @gregburkett5676 6 месяцев назад +1

    Thanks!

  • @user-hi4nt9sb5j
    @user-hi4nt9sb5j 4 месяца назад

    Thanks. Does the same principles apply for consumable non subscription IAPs?

  • @randy4ii411
    @randy4ii411 Год назад

    Great video sir, just wanted to say that you can query directly from the configuration file.

  • @Mustafa-cp8wc
    @Mustafa-cp8wc Год назад +3

    This is working for local StoreKit testing but isn't working for TestFlight. Are there any changes I need to do?

    • @GuyCassidy
      @GuyCassidy 6 месяцев назад

      Hey, did you sole this? having the same issue

    • @Spectraevil
      @Spectraevil 4 месяца назад

      @@GuyCassidydid u fix it?

  • @hungfhq7919
    @hungfhq7919 Год назад +3

    How can I handle auto renewable subscription with 1 month trial?

  • @typedx
    @typedx Год назад

    also can anyone give some clarity about on server (backend) validation in StoreKit 2? WWDC sessions have conflicting slides about the /verifyReceipt method, do we need to use it still? Then how to get a receipt in StoreKit 2?

  • @petertwiss4215
    @petertwiss4215 Год назад

    Thanks for the video. How do you now host the pkg content package as Apple do not hold the packages on their server anymore? I came across this issue today when I decided to add another IAP package to my app.

  • @hungfhq7919
    @hungfhq7919 Год назад

    If you know how to get the first installed date of app in a device, please show me how. Thank you very much.

  • @kennyQuekJH
    @kennyQuekJH Год назад +1

    Why does my iphone device did not prompt a sign in dialog when i tried to purchase a product? How can i test it with SandBox?

  • @s.iliev.21
    @s.iliev.21 5 месяцев назад

    Nice tutorial! How do you handle expired subscription?

  • @flysoloapp
    @flysoloapp Год назад

    Hi, thanks for the wonderful video. It helped a lot, but could you also teach us how to deal with consumable products? Are they really different?

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  Год назад +1

      That is something I might try to do a video for, in theory setup is the same but the additional logic is in the app for keeping inventory of purchased items and using them in your app/game.

    • @flysoloapp
      @flysoloapp Год назад +1

      Thank you. I've been trying similar approaches, but 'updateCustomerProductStatus' function at this video won't catch 'unfinished' consumable purchases, so I am kind of stuck appending these consumable products to an array. Would be greatly appreciate if you can do a video about this, too! @@JustAnotherDangHowToChannel

  • @ilyakamarali7865
    @ilyakamarali7865 Год назад

    Hello! A very clear video! But I have one question: how can I add pictures according to the product?

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  Год назад

      Thanks! If images are locally stored in your project you could probably name it as the display name or maybe even the product identifier.. Image("com.demo.image")

    • @ilyakamarali7865
      @ilyakamarali7865 Год назад

      @@JustAnotherDangHowToChannel Thank you for your answer

  • @ibringit
    @ibringit 2 месяца назад

    i am getting rejected about 40 times if you can help i would really appreciate it brother

  • @sleon
    @sleon 6 месяцев назад

    How you do this in regular Swift and not Swift UI?

  • @simply6162
    @simply6162 Год назад

    we want subsription tho

  • @dallasrieck7753
    @dallasrieck7753 Год назад +2

    why "tutorial", should be: share what you have gained...

  • @chaordo
    @chaordo Год назад

    Fantastic video, thank you! Do you know why after a purchase has bveSubscriptionView() would flash for a half-second before displaying "Premium Content"?