Store.isActive return false on certain devices

Hello fellow Corona folks!

I’m almost ready to release a new app, but I’m having problems with initialising the store for google.

In the app the users have to option to buy som non-consumable objects, but on some devices it doesn’t work.

I figured out that on these devices store.isActive returns false, and on some devices, where it returns true, there is no problem buying stuff at all.

I just can’t figure out what the difference can be.

Here are some of the devices I have tested.

It works:

  • Huawei T1-A21w, v. 4.4.4

  • Sony z3 compact, v. 5.1.1

Doesn’t work:

  • One plus one, v. 5.1.1

  • Samsung SM-g800f, v.4.4.2

I know that it is not necessarily a Corona thing, but I’m hoping that maybe other people have had similar situations :).

Hi k1010110,

Are you seeing anything in adb logcat when you invoke store.init()? We recently updated the Google IAP v3 plugin to provide more context is store.init() fails for any reason.

Should there be a failure in store.init(), you should see a message starting with, Error in initializing Google’s In App Billing: in logcat.

Oki I’ll try it. Hopefully it reveals some useful info :).

Well well, after playing with logcat, I’ve now trimmed the problem a bit. I get the error message ‘No license key was supplied to config.lua.’ whenever I try to init the store. But only on the devices that doesn’t work.

Obviously I have applied a correct key, otherwise it wouldn’t work on any devices. Could it be a problem with the generated key for some reason?

I know that it is not necessarily a Corona thing, but I’m hoping that maybe other people have had similar situations :).

Hi k1010110,

Are you seeing anything in adb logcat when you invoke store.init()? We recently updated the Google IAP v3 plugin to provide more context is store.init() fails for any reason.

Should there be a failure in store.init(), you should see a message starting with, Error in initializing Google’s In App Billing: in logcat.

Oki I’ll try it. Hopefully it reveals some useful info :).

Well well, after playing with logcat, I’ve now trimmed the problem a bit. I get the error message ‘No license key was supplied to config.lua.’ whenever I try to init the store. But only on the devices that doesn’t work.

Obviously I have applied a correct key, otherwise it wouldn’t work on any devices. Could it be a problem with the generated key for some reason?