I’m in the process of setting up in app purchases, it’s mostly going smoothly but I have a few things that I’m unsure about and I’m hoping someone here can help me out.
1. Test purchases.
Google Play allows you to set alpha, beta and production builds. I have ONLY uploaded an alpha build.
I have a Nexus 7, and have setup the gmail account for that (which is NOT a registered developer account) as a test user.
My assumption was that this would mean I do not get charged for making making purchases in this app, but I don’t see any proof of that. I set one of my IAP to the lowest price I could (£0.50), and when I went through the payment process it had my card number and seemed to go through as normal. I won’t know if the payment has actually gone through until it hits my bank statement in a few days. I have used the “android.test.purchased” product and that works as it should, but I want to test my own products without having to pay for the privilege.
From what I have said above, does it sound like the purchases would be free while the app is only an alpha build? Or have I missed a step?
2. Activity Indicators.
It seems that the native.setActivityIndicator spinner is automatically set to false when the Google Play window closes. However it also takes about 5 seconds for the purchase to finalise, so in the meantime it looks like nothing is happening, and that the purchase did not give the user the item they paid for.
So I switched to the spinner widget, and made a function that either stops and hides the spinner, or starts and makes it visible. This does stay on screen, but it freezes between the Google Play window closing, and the transaction callback function being called. It then dismisses when the transaction callback function has completed, as I expect it to.
Is there any good way of handling this delay? An active spinner would be fine for me, since the user would know that means the app is ‘thinking’ or ‘loading’ or something.