In App Notify 的应用内购买频率
在我的应用程序中,我正在销售图像。我的程序流程如下: 1. 购买按钮:执行购买 2. 在获取签名数据和签名后,我将其发送到我的服务器以进行验证 3. 如果通过验证,我的服务器会响应所售图像的 URL 4. 我将它们存储在数据库中,然后发送确认通知
我的问题是,如果由于某些网络问题,步骤 2 和3 失败。所以我不会确认该通知。在这种情况下,我多久会收到应用内通知。谷歌会再次发送签名的数据和签名吗?或者我必须在收到它们后立即存储它们?
In my application, I am selling images. My program flow is as follows:
1. Buy Button : performs the purchase
2. On getting the signed data and signature, I sent it to my server to get it verified
3. If verified, my server responds with the URLS of the images that are sold
4. I store them in a database and then sends confirm notification
My question is, If due to some network issues, steps 2 & 3 fails. So I will not be confirming the notification. In that case, how often will i get the IN APP NOTIFY. Will google send the signed data and signature again or will I have to store them as soon as i get them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我自己的测试,第一个是2分钟后出现的,第二个是15分钟后出现的。我没有耐心等待第三次。
According to my own testing, the first one came after 2 minutes, the second one came after 15 minutes. And i do not have the patient to wait for the third one.
这是另一个问题。如果我们发起 2 或 3 次购买,就会发生与 CChi 所说的相同的情况。但是您是否看到过商家帐户...如果没有为较早的订单发送 CONFIRM_NOTIFICATIONS,则不会更新。 (即,已收费和已发货不是绿色的)。
如果有人找到了解决此问题的方法,请告诉我。
Here is another problem. If we initiate 2 or 3 purchases the same thing happening as CChi said. But have you seen the merchant account... It is not updating if no CONFIRM_NOTIFICATIONS is sent for earlier order. (ie. Charged and Shipped are not green).
Please let me know if anybody found fix regarding that.