Hello everyone,
For a subscription, in order to get the last expiration date from receipt, tutorials on internet recommend to get the "last object" of the receipt:
let lastReceipt = receiptInfo.lastObject as! NSDictionary let expiresDate = lastReceipt["expires_date"]
But during my tests in sandbox environment, I found out there is no ["expires_date"] in the receipt "last object". Actually, the last subscription info was always in the "first object", so I have to write:
let lastReceipt = receiptInfo.firstObject as! NSDictionary
Does anyone else notice that? Are these tutorials out of date? Or did I miss something? I am quite new with subscriptions, so thank you for any insights.