You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to test the simulatesAskToBuyInSandbox feature.
I'm initiating a purchase with this code:
SwiftyStoreKit.purchaseProduct(self.product!, atomically: true, simulatesAskToBuyInSandbox: true) { result in
.. code here ..
}
And I'm handling the .deferred status on AppDelegate with the suggested function SwiftyStoreKit.completeTransactions(atomically: false)
So, the purchase is initiated correctly, the ask to buy is simulated correctly and the purchase is reported as .deferred.
However I don't know how to test the flow when a "parent" approve or deny the purchase because, as expected, I didn't receive any ask to buy notification as there is not a family group defined anywhere.
Is there a way to test this case? How can I test it?
What did you expect to happen
Some way to simulate the ask to buy approval/denial.
What happened instead
Nothing.
The text was updated successfully, but these errors were encountered:
When you receive a deferral for a purchase, StoreKit will let your app know -- at some unspecified future time -- if the purchase is a success or failure. Other than receiving that deferral, not much should be different, as far as I understand. You should check your callback in appDidFinishLaunching....
@lukegf did you found a way to test on sandbox? Keep getting the parent popup and I did not found from where to approve it. The testing account was not configured as a kid profile.
Platform
In app purchase type
Environment
Version
ℹ 0.14.2
Related issues
ℹ I didn't find any
Report
Issue summary
I don't know how to test the simulatesAskToBuyInSandbox feature.
I'm initiating a purchase with this code:
And I'm handling the .deferred status on AppDelegate with the suggested function
SwiftyStoreKit.completeTransactions(atomically: false)
So, the purchase is initiated correctly, the ask to buy is simulated correctly and the purchase is reported as .deferred.
However I don't know how to test the flow when a "parent" approve or deny the purchase because, as expected, I didn't receive any ask to buy notification as there is not a family group defined anywhere.
Is there a way to test this case? How can I test it?
What did you expect to happen
Some way to simulate the ask to buy approval/denial.
What happened instead
Nothing.
The text was updated successfully, but these errors were encountered: