菜鸟教程小白 发表于 2022-12-12 12:15:28

iOS 恢复产品


                                            <p><p>我正在使用 Corona SDK 编写代码。</p>

<p>我使用内置函数 store.restore()
<a href="https://docs.coronalabs.com/api/library/store/restore.html" rel="noreferrer noopener nofollow">https://docs.coronalabs.com/api/library/store/restore.html</a> </p>

<p>我对订阅 IAP 产品或一般恢复有疑问。</p>

<p>假设您是全新的用户。我的应用没有 IAP 历史记录。
当我调用恢复时,它根本不会返回任何东西。所以我不知道它是否还没有退回产品或者根本没有产品可以恢复。</p>

<p>我想知道它是否与 native 调用相同?</p>

<p>例如,我会切换到原生 IAP,我想知道它是否值得。因此,如果我在那里调用产品恢复,并且没有产品历史记录,我会得到任何返回的信息吗?</p>

<p>我确实未能在这里、谷歌或 IAP 论坛找到我的问题的答案。可能以一种糟糕的方式制定。无论如何提前谢谢</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>很遗憾,Corona 还不支持此功能。
这是一个请求的功能,你可以投票 <a href="http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/7237058-call-back-the-store-restore-callback-even-if-the" rel="noreferrer noopener nofollow">here</a> </p>

<p>关于 Apple 的 StoreKit。当一个 <a href="https://developer.apple.com/reference/storekit/skpaymentqueue/1506123-restorecompletedtransactions" rel="noreferrer noopener nofollow">restoreCompletedTransactions()</a>方法被调用,将通过调用委托(delegate)的 <a href="https://developer.apple.com/reference/storekit/skpaymenttransactionobserver/1506101-paymentqueuerestorecompletedtran" rel="noreferrer noopener nofollow">paymentQueueRestoreCompletedTransactionsFinished(_:)</a> 来完成整个队列方法。</p></p>
                                   
                                                <p style="font-size: 20px;">关于iOS 恢复产品,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/40174358/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/40174358/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iOS 恢复产品