SandBox Consumable product history disappear after renew subscription

My app offers user to subscript vip & buy gems gem (consumable). After purchase succeed, the receipt will be sent to my backend in order to update the gem amount record.

There's a checking for updating the gems number on database.

However, I find that there're two problems

  1. there's only the latest consumable history. The second time buying the gem will erase the previous record.
  2. after subscription / renew subscription, the consumable record is gone

I'm using sandbox environment. Do 1 & 2 still exist on Real situation? If 1 & 2 still exist on real situation, I've no idea to update the gem if the network fail (network fail: can't get the receipt after purchase gem, at the same time the renew subscription make the get purchase record disappear)

Answered by PazuC in 679406022

Problem solved. I just to soon to call finishPurchase. should call it after finish updating database.

Accepted Answer

Problem solved. I just to soon to call finishPurchase. should call it after finish updating database.

SandBox Consumable product history disappear after renew subscription
 
 
Q