I got it working. I now have a 'Has Full Version' returning true after a purchase has been made with the test capx. But...
If you follow the tutorial it will still refuse to build in XDK. Here's what I had to do.
- I went through every XML for the C2 export and every XML that XDK created in the project directory and removed every reference to com.mcm.plugins.androidinappbilling.
- I manually added the cc.fovea.plugins.inapppurchase plugin to the XDK project.
- I wasn't sure if the plugin you recommended in the tutorial was causing the issue or not so I found the cc.fovea.cordova.purchase which seems to work the same as it required the Google API key and maunally added it to the XDK project. (found here: https://github.com/j3k0/cordova-plugin-purchase )
The project built with no issues and now I'm able to get
So far cancelling the product purchase in Google Merchant Services hasn't reverted the Has Product back to false but that may just be a delay in Google's system and probably not a C2 issue.
This bug may be an issue with XDK automatically adding the com.mcm.plugins.androidinappbilling. I don't know enough about it to say. I'm just hacking my way through and making semi-educated guesses. You may want to confirm all of this and decide whether it's still an XDK issue or a C2 issue and possibly update the tutorial and/or send a note off to Intel letting them know.
One thing I noticed is that XDK does give a warning when you import the C2 project that adding plugins via the .XML has known issues.
Anyway, thanks for pointing me in the right direction for a solution. I can now begin work again!!!
And as for the Chrome and Amazon web... I did read that they were experimental and you didn't get a lot of feedback. I can live without them. Google Play is the big one on the block and once I get rolling again I can test the Amazon store to see if it works with a normal app and not just a web app. The basic plan was to have freemium versions on them. But if IAP doesn't work I can still use them for promotional put free versions on them to point the way to the Android app. If you do want them tested, add a note in the patch notes that get e-mailed out when you release updates (that way I'll see it) and I'll be happy to report any progress on them.
Thanks again. I'm a happy coder now.