onIabPurchaseFinished never called.

前端 未结 5 2146
野性不改
野性不改 2020-11-29 17:55

I\'ve been trying to set up in-app billing for my first app, and have been using the android.test.purchased sku. The purchase come through, and I manage to get the SKU into

5条回答
  •  旧时难觅i
    2020-11-29 18:40

    You need to call protected void onActivityResult(); In your parent Activity instead of MainActivity(Trivial Drive) where from you are calling your MainActivity that is Trivial Drive Activity.

    you will receive resultcode values -1 if purchase successful otherwise 0.

提交回复
热议问题