So I created a game, compiled an .apk file with CocoonJS, signed and zipaligned the apk, and put it on the Google Play Store. However I've now run into an issue with trying to get In-App purchases to work.
In the Google Play Developer Console is states the following in the In-app Products tab for my game:
"Your app doesn't have any in-app products yet.
To add in-app products, you need to add the BILLING permission to your APK."
What I have attempted to do is I opened the original .apk file, added the "IInAppBillingService.aidl" file, and modified the code in "AndroidManifest.xml" by adding the line:
<uses-permission android:name="com.android.vending.BILLING" />
Then I resigned/zipaligned the whole thing and tried adding it to Google Play, but Google returned the following error:
"Your APK cannot be analyzed using 'aapt dump badging'. Error output:
Failed to run aapt dump badging:
W/ResourceType(11858): Bad XML block: header size 28257 or total size 1936025193 is larger than data size 339
ERROR: AndroidManifest.xml is corrupt"
Has anyone else had any success publishing a game using Construct 2 and CocoonJS with working In-App Purchases and can tell me what I'm missing or did wrong? Thanks.