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 / [android] App crashes when calling inAppPurchaseActivate() a second time

Author
Message
TDavid
11
Years of Service
User Offline
Joined: 7th Feb 2013
Location:
Posted: 31st Aug 2014 19:54
Hello !

I run the stable version on Tier 1. I have had an annoying problem for some time now. When I try to purchase an item and complete the purchase, everything works fine. The purchase windows pops up and everything goes smoothly.

But if the purchase fails, for whatever reason (if the user cancels the purchase, for instance), then it becomes impossible to purchase anything : trying to click on the purchase button crashes the app systematically.

Clearing the cache of the app doesn't fix the issue but clearing the data of the app fixes the problem.

Does anyone has an idea what I did wrong ?
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 31st Aug 2014 19:57
I've not seen this happen.
No issues like this in my games (just tried)
Can you share your code?
Also what template have you used to make your APK (lite, regular) and is the APK uploaded to Google Play as alpha, beta, or production?

TDavid
11
Years of Service
User Offline
Joined: 7th Feb 2013
Location:
Posted: 1st Sep 2014 10:49
Somewhere at the beginning of my app :



Then when the user clicks the button to purchase the item, this code runs :


I'm using a customized lite template (I only edited the template to include full screen ads).

The app is uploaded as beta.
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 1st Sep 2014 11:26
All looks fine, but maybe something is happening during the setup process.
I've never put a conditional of GetInternetState() around the IAP setup. It isn't necessary and just maybe it is bunking something up.

Beyond that you
ll have to plug your device into your PC via a USB cable and have Eclipse running with LogCat console going so you can see the crash point.

I'm not sure how many devices you have available to you, but if you want to invite me to beta test on my devices I'd be happy to see if the issue persists.

TDavid
11
Years of Service
User Offline
Joined: 7th Feb 2013
Location:
Posted: 1st Sep 2014 15:32
I'd be more than happy to have you in the beta test. Send me your gmail by pm and I'll add you to the test group right away (provided my internet connexion holds).
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
TDavid
11
Years of Service
User Offline
Joined: 7th Feb 2013
Location:
Posted: 2nd Sep 2014 14:39
I'm a moron. A condition prevented my game from setting up the IAP. Sorry for bothering you guys.

Login to post a reply

Server time is: 2024-11-25 07:51:46
Your offset time is: 2024-11-25 07:51:46