Search Unity

[Solved] IAP on Android not coming back to Purchaser.cs after bought

Discussion in 'Unity IAP' started by tbll, Dec 7, 2016.

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

    tbll

    Joined:
    Jan 19, 2013
    Posts:
    31
    Hi Unity friends,

    we successfully implemented IAP on IOS and we have difficulties with Android.

    Here is the situation :
    • IAP are correctly initialized
    • When we call "InitiatePurchase()", the android IAP popup appear
    • We can subscribe in the Sandbox environment
    But when it comes to going back to the app, OnPurchaseFailed or ProcessPurchase are never called. (whereas they are in IOS).
    FYI: we are using the template of this tuto: https://unity3d.com/fr/learn/tutorials/topics/analytics/integrating-unity-iap-your-game

    Our logCat (nothing after this line, OnPurchaseFailed and ProcessPurchase have debugs) :



    Any idea where it could come from?

    Thanks in advance for your help.

    Thibault
     
  2. tbll

    tbll

    Joined:
    Jan 19, 2013
    Posts:
    31
    Problem solved!

    It was actually the native loader that was "blocking" the callback.
     
    ap-unity likes this.
Thread Status:
Not open for further replies.