How To Setup Auto-Renewable Subscription in Swift StoreKit2

Поделиться
HTML-код
  • Опубликовано: 1 мар 2023
  • Followup to the my storekit2 youtube tutorial. The following are covered in this repo demo.
    - setting up auto-renewable subscriptions
    - new product api, aysnc, managing transactions and verification
    - listening for transaction updates
    - testing in-app purchases in Xcode using storekit configuration files
    Source for this project available in my Github repo
    github.com/olopsman/storekit2...
    Buy Me Coffee
    buymeacoffee.com/pauloorquillo
    Social
    Twitter/X: / olopsman
    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

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

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

    Best tutorial I found so far in the past 2 days. Thank you so much

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

    Thank you for explaining it step-by-step in this video and the In-App Purchase video as well. This really helped me better understand the example from Apple's WWDC video. Thanks again!

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

    Thank you for creating this tutorial. Excellent and easy to understand step by step.

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

    This helped a lot. Thank you for explaining and sharing!

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

    Thank you for this! It was hugely beneficial for me.

  • @elliotknight5552
    @elliotknight5552 Месяц назад

    Really good tutorial thank you for the help

  • @iulianflester
    @iulianflester 9 месяцев назад +2

    This is exactly what I needed.

  • @SylsMusicRoom
    @SylsMusicRoom Месяц назад

    Thank you very much, works perfectly!

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

    Thanks for doing this man.

  • @MarcoSiciliano
    @MarcoSiciliano 2 месяца назад +1

    Thank you for this great video :)

  • @aritraneogi8008
    @aritraneogi8008 11 месяцев назад

    Thank You so much for this tutorial

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

    Excellent video, thank you. Helped me out a lot. :)

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

    Great video!

  • @natgenesis5038
    @natgenesis5038 11 месяцев назад +1

    Thanks so much

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

    great vid. quick, clear, and no BS. for the free trial on the monthly is that automatic or does something else need to be done?

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

      I believe that's automatic, handled by Apple, since you're using StoreKit.

  • @nat.serrano
    @nat.serrano 5 месяцев назад +1

    best video about storekit2, very very important in your app, the storekit server fails a lot!! can you do a video how to test, code defensively for the edge cases? (network error, products didn't load etc)

  • @diyshow888
    @diyshow888 4 месяца назад +1

    Hi, how do you open that window which you can delete transactions 1:34

  • @AbbeyOnAtkins
    @AbbeyOnAtkins 11 месяцев назад +1

    “Drag that over here “ … what are you using for an external monitor?

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

    how to get into that Transaction management screen to delete transactions?

    • @robertofusco457
      @robertofusco457 Год назад +4

      xcode -> debug -> storekit -> manage transactions

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

    this works great in the simulator, and the App Store Connect website does recognize it (when trying to duplicate it says there is already one)...but when running on TestFlight nothing appears. Also failed app review for the same reason. Anybody got any ideas?

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

      Maybe you didn't use a Store Kit Configuration instead of the products file? You can edit this in the scheme like he showed in the video.

    • @dakota5532
      @dakota5532 Год назад +9

      @@hanswurst1 thanks for the reply. It ended up being that I had to add a subscription to appstore connect. Wait for it to update to apple account, then adding a storekit file to xcode that was synced to the appstore connect.
      I'm guessing when he created the local storekit file, it was for testing purposes only. idk.
      Also I got a yellow popup saying "Missing Metadata" for my subscriptions (another review failure)... What it doesn't say is that you need to add a picture to your subscription before it can even be ready to be reviewed with your app. I found the fix on a forum that is 7 years old
      Passed Review! Don't forget Restore Purchases button!
      func restorePurchases() { SKPaymentQueue.default().restoreCompletedTransactions() }
      This will print purchases subscriptions ids for pop up message -- \(storeVM.purchasesSubscriptions.map{$0.description})

    • @cagataykoroglu1776
      @cagataykoroglu1776 3 месяца назад

      @@dakota5532 Hello, although I made all the settings in the app store connect, the person reviewing the application cannot take any action. However, if I add the configuration in the Run (Debug) section, it works in xcode but not normally.

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

      @@dakota5532Honestly so helpful. Thank you!

  • @nat.serrano
    @nat.serrano 5 месяцев назад

    I am also confused with how to check if the subscription is active or cancelled or in billing retry. I assume we need to have a different function to check the subscription status right?

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

      i have the same Problem here. Also when the subscription expires, this method is not working. I’m trying to solve this problem with a subscription status function like vyou said. If you already got a solution I would be happy if you could share it.

    • @nat.serrano
      @nat.serrano 4 месяца назад

      @@lukef2952 I fixed it (I think), when the subscription expires I just need to check if the subscription is active when app goes to the background. I also use the listener func listenForTransactions() -> Task {. It’s exactly how apple ask us to do it. I plan to use RevenueCat for a project to see if it really helps to increae sales

  • @teamchang4894
    @teamchang4894 8 месяцев назад +4

    What about restore purchases?

    • @user-jy5pu6bg5p
      @user-jy5pu6bg5p 5 месяцев назад

      yes actually now days is. a must for apple , please if you know let us know

    • @Shopanywant
      @Shopanywant Месяц назад

      Hello there. Could you handle restore purchases management in your app? If you did can you help me please?

    • @teamchang4894
      @teamchang4894 26 дней назад

      @@Shopanywant yes I did. Are you using storekit or storekit 2

  • @ardacmen
    @ardacmen 11 месяцев назад +1

    how you handle appstore connect?

  • @lvterry
    @lvterry 9 месяцев назад

    Thanks for the video. Very helpful