Question

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

  • 15 December 2023
  • 1 reply
  • 19 views

Badge +2

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 

 

 


1 reply

Userlevel 4
Badge +6

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? 

Reply