After a lot of testing I end up with a broken appStoreReceiptUR file.
On the appdelegate I read the appStoreReceiptURL and then I validate the receipt as explained here https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/ValidateAppStoreReceipt.pdf
and I get a lot of pending in_app transactions to finish (just showing two below)
{
environment = Sandbox;
receipt = {
"in_app" = (
{
"is_trial_period" = false;
"original_purchase_date" = "2015-06-28 18:07:10 Etc/GMT";
"original_purchase_date_ms" = 1435514830000;
"original_purchase_date_pst" = "2015-06-28 11:07:10 America/Los_Angeles";
"original_transaction_id" = 1000000161134923;
"purchase_date" = "2015-06-28 18:07:10 Etc/GMT";
"purchase_date_ms" = 1435514830000;
"purchase_date_pst" = "2015-06-28 11:07:10 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000161134923;
},
{
"is_trial_period" = false;
"original_purchase_date" = "2015-06-29 17:16:29 Etc/GMT";
"original_purchase_date_ms" = 1435598189000;
"original_purchase_date_pst" = "2015-06-29 10:16:29 America/Los_Angeles";
"original_transaction_id" = 1000000161282043;
"purchase_date" = "2015-06-29 17:16:29 Etc/GMT";
"purchase_date_ms" = 1435598189000;
"purchase_date_pst" = "2015-06-29 10:16:29 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000161282043;
}
);
};
status = 0;
}
How can I retrieve those SKPaymentTransaction objects to then call.
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
This is very strange - Is this issue happening in the sandbox or production environments. In either case, this is an iTunesConnect issue to be investigated. If you do report this to iTC, they are likely to point you to DTS. On my part, I can only help you collect additional information which I can then present to iTC for them to investigate. Looking at this differently - is this in the sandbox. If so, try creating a new testuser and see if the problem persists with the new test user. I'm going to assume that it doesn't. However, if this issue is with the production environment, this would best be handled as a DTS incident.
rich kubota - rkubota@apple.com
developer technical support CoreOS/Hardware/MFI