Skip to main content
Question

Objective-C, how to access RCStoreFront


Forum|alt.badge.img+5

Good evening


We are moving away from calling SK1 directly towards using RC in iOS. We do use SKStorefront.

 

We see the RCStoreFront class in the xcframework but we haven’t found a way to access/init/fetch it.

 

Dead end? Can you point us in the right direction? How to get a RCStoreFront in ObjC

 

Thank you

This post has been closed for comments

4 replies

NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • 22 replies
  • May 25, 2022

Hello,

That’s a great question. `RCStoreFront` does have a `currentStorefront` property which supports StoreKit 1 and StoreKit 2, but due to the fact that the SK2 way of obtaining the current storefront is `async`, this property is `async`, which means that it indeed isn’t available on Objective-C.

I think this means we should add another property for Objective-C, maybe `+ [RCStoreFront rc1CurrentStorefront]`.


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • 22 replies
  • May 25, 2022

Forum|alt.badge.img+5

Awesome. Thank you. That makes sense! :) 


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • 22 replies
  • June 2, 2022

This is being released today as part of version 4.5.0 🎉

[RCStorefront sk1CurrentStorefront]


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings