It turned out I didn’t have it 100% fixed, as I also had to add intent-filter/services/etc to the AndroidManifest.xml file, which I mostly have working now.
I have the facebook, flurry, vungle and google play game services plugins working, but I’m struggling to get google IAP working when I build with Enterprise (it works when I build from simuator). When I call store.purchase() nothing happens, I don’t get any errors or any reply at all.
I’m using the plugin.google.iap.v3.jar, and my manifest file has the com.android.vending.BILLING permission and the following:
\<receiver android:name="com.ansca.corona.purchasing.GoogleStoreBroadcastReceiver"\> \<intent-filter\> \<action android:name="com.android.vending.billing.IN\_APP\_NOTIFY" /\> \<action android:name="com.android.vending.billing.RESPONSE\_CODE" /\> \<action android:name="com.android.vending.billing.PURCHASE\_STATE\_CHANGED" /\> \</intent-filter\> \</receiver\>
Is there something else I’m missing? I’m guessing you’ll spot something straight away Danny.
Similarly, I’m not sure how to integrate google play licensing when building with Enterpise. I have the com.android.vending.CHECK_LICENSE permission, and I see there is a google play licensing plugin included with corona enterprise (just called classes.jar), but I’m not sure how I’m supposed to use it.
For the most part we’re using enterprise to do offline building and building multiple apks at once from the command line, so any of the native java stuff isn’t second nature to me yet as we haven’t had to use it.
If anyone can point me in the right direction for these things it would be greatly appreciated.