Android In-App Billing v3: Not receiving signatures

前端 未结 3 1065
北恋
北恋 2020-12-29 09:29

I\'m working on a In App Store on my app, I used AndroidBillingLibrary by robotmedia, when I purchase android.test.purchased using the library the

相关标签:
3条回答
  • 2020-12-29 10:18

    What you mean by Signatures? Is that Subscriptions? Or an in-app item (consumable or not)? Because in-App Billing v3 does not support subscriptions at the moment, if you want that feature you have to use v2 (https://developer.android.com/google/play/billing/billing_overview.html). Also, make sure your item is marked as "a managed item" on your developer console (for Billing v3).

    Sorry if I misunderstood. Also, try enabling the debug mode on your IabHelper instance, this will provide you a better overview of your problem.

    mHelper.enableDebugLogging(true, "YOURTAG");
    

    I suggest taking a look at the implementation guide on the Developers website: https://developer.android.com/google/play/billing/billing_integrate.html

    There's also sample code there.

    0 讨论(0)
  • 2020-12-29 10:23

    As was said by Rawkode, you no longer get signatures for test purchases (android.test.*). I took the dive and uploaded my app to the market place (just didn't publish it) using my real products.

    Low and behold signatures started to be returned! I recommend amending any server side validation you are using to skip the signature check when the data contains an android.test.* item id.

    0 讨论(0)
  • 2020-12-29 10:28

    You don't get signatures for the test IDs, android.test.purchased, etc.

    You'll receive signatures with real purchases.

    0 讨论(0)
提交回复
热议问题