Skip to main content
Question

SwiftUI - isActive is false after auto renewal of subscriptions (Sandbox), i have multiple subscriptions. I get invalid subscription status when checking them.

  • December 15, 2023
  • 1 reply
  • 50 views

Forum|alt.badge.img+3

I have two monthly subscriptions, everything set up well. Purchasing work well. issue is  

I am trying to subscribe to two cards using sandbox account, then everything works well but checking the subscription status becomes false for card 1 and true for card 2. Please see the code

Tracking the status of card 1 and card 2 in my HomeView(earlier) then passing it to my Premium_View. The isSub_b_card1 and isSub_b_card2 are Bendable vars.

HomeView:

 

PremiumCard_ListView

 

PremiumCard_ListView - If the No subscriptions. Show BusinessCard_Offers_View to get subscription for the specific Card.

 

BusinessCard_Offers_View 

 

Card View Model 

 

 

This post has been closed for comments

1 reply

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • December 19, 2023

Hey @aziz-ullah-14e501!

 

Which version and framework of the SDK are you using? I noticed that you are using purchaserInfo which has been outdated for some time now. Can you please upgrade to latest version and check to see if the issue is resolved?