Product status is always "invalid" (using Cordova plugin purchase)

I am using Purchase Cordova Plugins to use in-app billing in my android app. However, when using an alert with a JSON string product, the product status is always "invalid". Here's an example of my code on this issue:

store.register({
    id:    'test_walker_01',
    alias: 'walker',
    type:   store.CONSUMABLE
});

item_walker = store.get("test_walker_01");

store.when("product").updated(function (product) {
    alert(JSON.stringify(product));
});

store.refresh();

      

My problem: I cannot access my product information from Google Play.

After a lot of googling and stack overflow, here are the steps I have already followed / checked to find a solution:

  • I checked three times that the ID matches the ID of the Developer Console and the type is "managed".
  • The product is activated in the developer console.
  • I downloaded the same APK to my test phone as the one downloaded in the developer console in Alpha testing.
  • I am using a different google account than the one in the developer console.
  • I added this (different) account to the list of authorized Gmail accounts.
  • The APK I sign and download is version (not debuggable).
  • As far as I know, I only use one key to sign all my APKs (referring to this SO question) . I'm not sure how many keys can be used.
  • I even uninstalled the app completely, rebooted my phone and reinstalled it.

Thanks for your help!

+3


source to share


1 answer


After a lot of searching, I found the answer in the last few comments on this issue in the Github plugin: You must publish your app (in Alpha mode) to Google Play for it to actually work.



Alpha publishing allows people in your test group to access the app, so don't worry about that. Just fill in the required fields with temporary information.

+2


source







All Articles