7 Replies
      Latest reply on Feb 7, 2019 6:38 AM by Burve
      zippo227 Level 1 Level 1 (0 points)

        This code works in my main app, but in the iMessage App Extension, it throws an error.

         

        Error Domain=SSErrorDomain Code=4 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

         

        func restoreInAppPurchase() {
            receiptRequestHolder = SKReceiptRefreshRequest.init(receiptProperties: [:])
            receiptRequestHolder!.start()
        }

         

        Is restoring purchases in this manner simply not possible in an iMessage App Extension?