Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Apple purchase problem iPhone iPad?
Started by d.mach Jun 22 2018 07:53 AM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 644 posts
  • Corona SDK

I just got three emails from players who have bought an ad removal in our game. This has worked perfectly for the last days, but now it seems like when trying to RESTORE the App Store can not be reached.

 

We are using a game version from last december... so my question: Are there any changes on the purchase code over the last months regarding iOS (universal) in-app and restore?

 

Anybody else experiencing this since today?

 

UPDATE:

It seems to happen when calling:

if  store.isActive and store.canMakePurchases then

        --performWithDelay (120,_G.store.restore,1)
        store.restore()

end

the store.restore() is getting called, so it seems like store.isActive and store.canMakePurchases is checked correctly... but the restore() call is giving nothing back it seems.

 

What can cause this?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

Do you have your restore code on a button or are you just calling it after you initialize in-app purchases?



[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 644 posts
  • Corona SDK

the store.init is called at start and later you can access the store for purchasing and restoring by clicking on a button.

 

Is there a chance this can happen only on an iPhoneX ? Is there something handled differently during the purchase process?

The build was from last december using an older corona build.

 

UPDATE: It seems to happen with an iPad in some cases also.

 

What can cause this strange behavior of store.isActive store.canMakePurchases is both true but the "purchase" or "restore" state in the transactionListener is not reached!?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

store.restore() wont return any thing or trigger any events if there is no work to do. Can you reproduce this? If so there might be information in the device's console log that can help you.

 

Rob



[TOPIC: post.html]
#5

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 644 posts
  • Corona SDK

will continue looking into this and try to get more info.

Thx!




[topic_controls]
[/topic_controls]