Bug Issue: "request info for product" block not working


Pages: 1

hairyfingers

  • Level 2 Stencyler
November 17, 2016, 03:44:26 pm
Hi

I have successfully set up an IAP for android with the ID   advert_free  .  In the game, when I click the advert free actor the Google play window pops up with the description and price ready for purchase, and I can complete the purchase.

However I cannot access the product info to dislay the price before purchase.  Purchases are initialised (I can make a purchase succesfully) .  I have used a "request info for product with ID advert_free" in an initialise event in a scene.  I have created a "When a product info request succeeds" event in the same scene.  I have asked it to 'show alert' each time a success is registered (just for testing purposes).  However It never alerts and it just displays "none" when I use the "price for product with ID advert_free" block

This worked fine in 3.3 which I used back in April  - 6 months on it is broken.  Is it linked with the update to google play  that changed the in app billing.  I had a message in my developer console along the lines of "Security alert
Your app is using an incorrect implementation of in-app billing"

thanks


robinschaafsma

  • Master Stencyler
  • *
November 18, 2016, 04:22:51 am
Ok thats is strange, can you share some screenshots of your code


New attachment added by hairyfingers - November 18, 2016, 10:57:23 am


New attachment added by hairyfingers - November 18, 2016, 10:57:44 am


New attachment added by hairyfingers - November 18, 2016, 10:57:53 am


New attachment added by hairyfingers - November 18, 2016, 10:58:08 am


New attachment added by hairyfingers - November 18, 2016, 10:58:20 am


New attachment added by hairyfingers - November 18, 2016, 11:07:15 am


New attachment added by hairyfingers - November 18, 2016, 11:07:45 am


New attachment added by hairyfingers - November 18, 2016, 11:08:29 am


New attachment added by hairyfingers - November 18, 2016, 11:08:43 am


hairyfingers

  • Level 2 Stencyler
November 18, 2016, 11:12:44 am
Hi

Various screenshots attached. Showing the request code,  the 'on success' code, the google dev console to show correct ID's,  the succesful purchase on the phone,  the drawing of the price as 'none' in the store.

basically the main issue to bottom out is why, based on the 'on success' code, do I not get an alert saying info request successful. 


robinschaafsma

  • Master Stencyler
  • *
November 18, 2016, 01:04:52 pm
Yes, you cannot call multi request this way, need wait between every request.

Try to do this:



hairyfingers

  • Level 2 Stencyler
November 18, 2016, 04:14:05 pm
Ahhh - It was me being thick then!

That makes sense  now.  In my published version I request them all  together  and sometimes it works but sometimes it doesn't and I've never understood why.  Now I do!

thank you


Tepastelija

  • Level 1 Stencyler
November 19, 2016, 12:24:11 am
Robin could you guys update iOS and Android purchase tutorials in stencylpedia as they are currently outdated. I have had huge problems with implementing my in app purchases as current iOS tutorial in stencylpedia doesn't seem to be working. Also i have to say that in stencylpedia's tutorial there's picture where every purchase is set without timer wait as you showed..

As offtopic i would like to thank you for your Vungle extension for Stencyl.  It's amazing how much your work makes this tool as better for everyone.


robinschaafsma

  • Master Stencyler
  • *
November 19, 2016, 03:46:47 am
Ahhh - It was me being thick then!

That makes sense  now.  In my published version I request them all  together  and sometimes it works but sometimes it doesn't and I've never understood why.  Now I do!

thank you
Ok good to hear..


robinschaafsma

  • Master Stencyler
  • *
November 19, 2016, 03:52:15 am
Robin could you guys update iOS and Android purchase tutorials in stencylpedia as they are currently outdated. I have had huge problems with implementing my in app purchases as current iOS tutorial in stencylpedia doesn't seem to be working. Also i have to say that in stencylpedia's tutorial there's picture where every purchase is set without timer wait as you showed..

As offtopic i would like to thank you for your Vungle extension for Stencyl.  It's amazing how much your work makes this tool as better for everyone.

Hi,

Yes I know and that is still on my to do list..

It is also possible to update  the tutorials by members on Github, by making an pull request. :)
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    November 17, 2016, 03:44:26 pm
  • Updated
    November 19, 2016, 03:52:15 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.4.0 beta4
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode Blocks

Tags


Attachments


* requestInfo.png (38.36 kB, 720x440 - viewed 294 times.)

* infoSuccess.png (34.93 kB, 768x469 - viewed 235 times.)

* storePurchase.png (26 kB, 1023x289 - viewed 258 times.)

* developerConsole.png (51.09 kB, 1258x488 - viewed 217 times.)

* iapConsoleDetail.png (38.46 kB, 739x591 - viewed 226 times.)

* storeText.png (37.11 kB, 957x535 - viewed 303 times.)

* productIdAttrib.png (12.93 kB, 619x301 - viewed 172 times.)

* Screenshot_20161118-184739 (1).png (566.12 kB, 1080x1920 - viewed 198 times.)

* Screenshot_20161118-190049.png (785.8 kB, 1080x1920 - viewed 190 times.)