How to Test Google Licensing

Hi there,

This may be a silly question but I can’t find an answer anywhere.

I’m including Google Licensing in our apps. When I test this on a device, I get a message (as I should do) telling me that the app isn’t licensed to run on the device. I’d expect that, as I didn’t by the test copy of the app via the Google Store, so the license key won’t match. All okay so far.

However, how then, do I test if the licensing is working prior to uploading the app to the store. I don’t want to upload and then find there’s an error at that point.

If I try to buy an older copy of my app and then install the new version over the top to test the licensing, the Play Store won’t let me buy my own apps using my account. I can buy any other app, but not my own.

I’ve tried setting myself up as a tester with Google’s testing functionality but no joy - I still can’t download a version of my own app, even if it’s a test version.

So how do I test the licensing works…? Am I missing something really obvious here?

Thanks,

Ian

You need a different email address than your developer address.  Then add that other address as a tester.  Then you can upload an alpha or beta build and invite that tester to download the app.

Rob

Thanks Rob. I did this in the end - had been hoping for something less fiddly that didn’t involve having to remove my Google account from my test device to add a new one.

Cheers,

Ian

If you’re running a later version of Android (5.x) it supports multiple accounts per device.  I have my developer and test accounts on the same tablet.

Interesting - thanks Rob - I wasn’t aware of that. It will certainly make life a lot easier!

Thanks,

Ian

You need a different email address than your developer address.  Then add that other address as a tester.  Then you can upload an alpha or beta build and invite that tester to download the app.

Rob

Thanks Rob. I did this in the end - had been hoping for something less fiddly that didn’t involve having to remove my Google account from my test device to add a new one.

Cheers,

Ian

If you’re running a later version of Android (5.x) it supports multiple accounts per device.  I have my developer and test accounts on the same tablet.

Interesting - thanks Rob - I wasn’t aware of that. It will certainly make life a lot easier!

Thanks,

Ian