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.Background
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