I have a paid app that has been on the App Store for a year.
I am wanting make two changes to this app; 1) make the app free, and, 2) add advertising. But, I’m wanting to ensure that current users who purchased the app never see advertising.
Two solutions I have considered:
I could either completely delete the current app from iTunesConnect and the App Store then submit a brand new replacement app with a new Bundle ID.
Alternatively, in the current app, I could make a request to the App Store and check when the user first purchased the app as a way to determine whether or not to display advertising or not.
On the developer website I’ve read ‘Validating Receipts With the App Store’ and understand StoreKit
and appStoreReceiptURL
are involved, but am no clearer as to how to implement and achieve this in Swift 2.
Question:
Anyone experienced with such matters, in Swift 2, how do I make a successful request to the App Store and check the date when the user purchased the app?