Search Unity

[Solved] How does IAppleExtensions.simulateAskToBuy work?

Discussion in 'Unity IAP' started by Havokki, Aug 23, 2017.

Thread Status:
Not open for further replies.
  1. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    I tried to google with "unity simulateAskToBuy" and got only one result, which was the changelog that simply states that this feature exists. How am I supposed to use it? I enabled it, but I do not get a call to the deferred purchase listener.

    I know it's an experimental feature, but at the moment it's quite difficult to even test it.
     
    MariaAngelovaPD likes this.
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    Unity IAP has implemented the simulatesAskToBuyInSandbox property that Apple has defined:
    https://developer.apple.com/documen...blepayment/1620604-simulatesasktobuyinsandbox

    However, from multiple conversations on StackOverflow and the Apple Developer Forums, it sounds like feature that is not currently supported in the Apple Sandbox.

    "With regards to Ask-To-Buy support, there is no support for this function in the Sandbox nor in the TestFlight environment. “Ask to Buy” is not an API implementation, but a support process implemented by iTunesConnect which requires StoreKit interaction with a specific iTunes account. This support only exists in the production environment. I suggest that you submit an enhancement request - via the Apple Developer bug report web page - http://bugreport.apple.com"
    Source: https://forums.developer.apple.com/thread/38561#117143

    https://forums.developer.apple.com/thread/5703
    https://stackoverflow.com/questions/25510678/how-to-test-skpaymenttransactionstatedeferred
     
    Havokki likes this.
  3. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    Thanks for the explanation and quick reply!
     
Thread Status:
Not open for further replies.