2017-06-23 47 views
0

Im在收到我的應用程序自動續訂更新延遲。在沙盒模式下檢查應用程序內購買自動續訂訂閱

彷彿用戶簽約7天的訂閱與1周免費試用一個例子,

  • 裝置1周= 3分鐘
  • 自動續訂會發生5次。
  • 總時間= 15分鐘。

所以根據上述信息,在前15分鐘內,我應該有一個積極的訂閱。但有時它不會返回活動訂閱。

我發現的問題是甚至在前3分鐘後,收據還沒有更新,所以當我比較過期日期和當前時間時,它返回訂閱期限屆滿。

這是沙盒模式中常見的東西或即時我做錯了什麼?

請幫幫我。

+0

有時沙盒會模擬用戶取消更新 – Paulw11

回答

0

一些我如何解決這個問題。最初在我的設備中,我沒有自動設置我的時間設置。有些時候我設定的時間比實時多5分鐘。因此,在驗證過期日期時,它總是顯示爲過期訂閱。

由於沙盒模式下測試的時間段非常短(3分鐘)一週。我猜,它給了我錯誤的信息。

希望這會有所幫助。謝謝。

0
Testing Auto-Renewable Subscriptions 

When testing auto-renewable subscriptions in the test environment, keep in mind that the duration times are compressed. Additionally, test subscriptions only auto-renew a maximum of six times. Table 3-1 lists the compressed duration times. 

Table 3-1 Subscription durations for testing 
Actual duration 
Test duration 
1 week 3 minutes 
1 month 5 minutes 
2 months 10 minutes 
3 months 15 minutes 
6 months 30 minutes 
1 year 1 hour 

請參閱此網址。 https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html

相關問題