我正在使用IAP Auto可再生订阅。在更改沙箱帐户后,我正在使用一个沙箱帐户进行测试,但是对于收据验证,我仍然获得相同的收据。
PS:我也尝试过
// Hint... handle requestDidFinish delegate method and then use appStoreReceiptURL for receipt data
let request:SKReceiptRefreshRequest = SKReceiptRefreshRequest(receiptProperties: nil);
request.delegate = self;
request.start();
但是它一直在询问iTunes密码,这很烦人。
最佳答案
在访问appStoreReceiptURL之前,请尝试调用SKReceiptRefreshRequest;
https://developer.apple.com/documentation/storekit/skreceiptrefreshrequest
// Hint... handle requestDidFinish delegate method and then use appStoreReceiptURL for receipt data
let request:SKReceiptRefreshRequest = SKReceiptRefreshRequest(receiptProperties: nil);
request.delegate = self;
request.start();
关于ios - 更改沙箱帐户后,Apple IAP还原数据将发送相同的收据,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51441425/