Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / IAP on Amazon using AppGameKit-V2017.02.28-Windows - Grey Screen

Author
Message
SpinieBop
10
Years of Service
User Offline
Joined: 10th Oct 2014
Location: Australia
Posted: 31st Mar 2017 10:32
Hi,
I was having a bit of a problem with IAP purchases on Google play but I have got it working fine now. I am using the same code in Amazon but I get a blank grey screen when it is trying to down download the IAP product, I have to use the back button on the phone to get out of it. I have set up the IAP product in Amazon exactly the same as I did in Google, any advice on what might be the problem would be appreciated.

I am using version AppGameKit-V2017.02.28-Windows. Tier 1.
I have set up a Amazon account with a valid credit card attached.

I noticed that when I create the APK file for Amazon the “In-App purchase” check box” is greyed out.

The code I am using is;

InAppPurchaseSetTitle ("App Title")
InAppPurchaseSetKeys (The valid key for google) --- Documentation says Amazon ignores this call
InAppPurchaseAddProductID ("my SKU", 0) --- I want a non consumable IAP
InAppPurchaseSetup( )

When the user wants to purchase the following routine is called, seems to be getting stuck on the “if GetInAppPurchaseState ( ) = 1” statement.

iAPSection:
InAppPurchaseActivate ( 0 )
do
if GetInAppPurchaseState ( ) = 1
exit
endif
sync ( )
loop

if GetInAppPurchaseAvailable ( 0 ) = 1
iAP = 1
SetAdvertVisible ( 0 )
DeleteAdvert()
endif
sync ( )
return

Regards,

Kevin
Kevin
SpinieBop
10
Years of Service
User Offline
Joined: 10th Oct 2014
Location: Australia
Posted: 1st Apr 2017 08:34
I did not change a thing and now it is working, arrrrrr what can I say.
Kevin

Login to post a reply

Server time is: 2024-11-24 16:27:00
Your offset time is: 2024-11-24 16:27:00