I’m trying to test a new introductory offer but it’s proving to be a bit more difficult than anticipated.
I’m running my scheme using a StoreKit Configuration file in the simulator (although the same happens without the file on a device with sandbox user). When testing for eligibility, I get “unknown”. I’ve tried deleting the user from the dashboard and deleting the StoreKit transactions from Xcode > Debug > StoreKit but it doesn’t change the outcome.
The only thing that works is to force StoreKit 2 with .with(usesStoreKit2IfAvailable: true)
which I know is deprecated.
This is problematic because now I’m wondering if my app is showing introductory offers correctly to my live users. Any guidance on this would be greatly appreciated! 🙏
As a side-note, this is made more complicated by the fact I’m deploying that intro offer using targeting and custom attributes. When deleting a custom attribute (or a customer), it looks like it’s no longer possible for my app to set a value for those customer’s attributes. No matter how many times I call setAttributes()
and syncAttributesAndOfferingsIfNeeded()
, the dashboard won’t show those attributes and Targeting won’t send the correct offering. I need to re-add these attributes to that customer manually via the dashboard.