I am having a bit of trouble with the native IAP plugin which I hope one/some of you more experienced users will be able to help me with.
I have created a simple game that I want to release with IAPâ€™s to remove the Ads, pretty standard.
I am using:
â€¢ Construct 2 r218.
â€¢ Official IAP plugin
â€¢ Intel XDK (fully up to date on making this post)
o Android InAppBilling (com.mcm.plugins.androidinappbilling)
o Google Play Services for Android (com.google.playservices)
o Phonegap Admob plugin (com.cranberrygame.phonegap.plugin.ad.admob)
o Device (cordova-pligin-device)
I have created a beta test app on google play and registered the in app purchase IDâ€™s.
When I publish the app in closed beta and install it on my phone the price of the IAP is not displayed, using Set text to â€œâ€&IAP.ProductPrice(â€œsupportdev1â€), and the On purchase success and the Has product â€œsupportdev1â€ do not work.
I have created text objects to monitor what is happening during game play on the phone and these events are never triggered, however I can purchase the product and the On store listing success is working.
However, due to the triggers not working the ads are never removed. I have been stuck for 1.5 wks trying to sort this out and I believe I have read all the construct 2 tutorials and forum posts. So any help will be very must appreciated!
You can see my logic below:
On start of layout >> IAP > Add product IDs â€œsupportdev1â€
>>IAP > Request store listing
IAP > On store listing success >> Restore purchases
>IAP > Has Product â€œsupportdev1â€ >> System > Set IAP_Made to 1
>> LocalStoreage > Set item â€œIAP_Made_Keyâ€ to IAP_Made
IAP > On store listing success >> SupportDev1_Text > Set text to â€œâ€&IAP.ProductPice(â€œsupportdev1â€)
>> Store_Available_Indicator_Text > Set Text to â€œIs Store Available: â€œ&Display_IAP_Prices
>> System > Set Display_IAP_Prices to â€œYesâ€
System > Display_IAP_Prices = â€œNoâ€ >> SupportDev1_Text > Set text to â€œâ€¦â€
Touch > On tap gesture on button >>
IAP > Is store available >> IAP > Request store listing
>> IAP > Purchase product â€œsupportdev1â€
>> Purchase_Made_Indicator_Text > Set text to â€œIAP Made: â€œ&IAP_Made
On product â€œsupportdev1â€ purchase success >> IAP > Restore purchases
>> System > Set IAP_Made to 1
>> LocalStorage > Get item â€œIAP_Made_Keyâ€
>> Purchase_Success_Indicator_Text > Set text to â€œPurchase Successâ€
LocalStorage > On item â€œIAP_Made_Keyâ€ get >> LocalStorage > Set item â€IAP_Made_Keyâ€ to IAP_Made
To see this all working in action checkout my game:
https://play.google.com/store/apps/deta ... ubbaPoppin