Maybe someone will have an idea on how to accomplish this.
I made an app which has certain coupons. The coupons can be spent within the app and then purchased again. My app can check whether a product is bought. This is called 'managed products.'
I would like the coupons to be 'purchased' initially and needed to be repurchased only after
being spent. In other words I would like to give every new user 5 coupons for free. Unfortunately, you can't set IAPs to be 'purchased' by default in the Android's developer console.
So, the only way to do this seems to be to keep track of the coupons within my app and add/spend them as needed.
BUT... this seems insecure. Someone could hack into the webstorage and give themselves more coupons etc. Also the coupons would reset to full after reinstalling the app. So I need a secure way to save the info about the amount of coupons externally on a server. I'd much rather not implement a user account system just for this purpose.
The best thing would be to be able to save the information in a Google Play service or something. Is it possible? Alternatively I could identify the user by a device ID but I'm not sure if it is possible to get a unique ID on Android with Construct 2. Bottom line, I need a persistent, verifiable and secure way to store one number for every installation of my app.
Any thoughts on this?
[Edit] This would be perfect. Unfortunately it's currently in some kind of private beta. https://developer.android.com/google/gcs/index.html