Posts

Post not yet marked as solved
0 Replies
542 Views
I am trying to test paymentCanceled use case using SKTestSession. Here is the code I am using: var session = try? SKTestSession(configurationFileNamed: "PurchasesWithProducts") session?.disableDialogs = true session?.failTransactionsEnabled = true session?.failureError = .paymentCancelled The problem is whatever value I set to failureError the returned error is always: Error Domain=SKErrorDomain Code=0 "UNKNOWN_ERROR" UserInfo={NSLocalizedDescription=UNKNOWN_ERROR, NSUnderlyingError=0x60000138ee50 {Error Domain=ASDServerErrorDomain Code=9999 "The server encountered an error" UserInfo={NSLocalizedDescription=The server encountered an error}}}) To me it seems like failureError property is not respected. Also the docs are a bit misleading: You can force an error by setting failTransactionsEnabled to true and setting failureError value to one of these supported error codes: SKError.Code.unknown, SKError.Code.invalidOfferIdentifier, SKError.Code.invalidSignature, SKError.Code.missingOfferParams, SKError.Code.invalidOfferPrice. At first I would think that I can only use those error codes but even by using those codes I am getting the same error.
Posted Last updated
.
Post marked as solved
2 Replies
2.9k Views
Consider the following scenario. The user is registerd in our app and/or backend with his Apple ID. Then the user requests to be deleted. We delete the users an all of its details. After some time the user decides to come back to our app. How do we make sure that we can get the mail and first/last name next time the user requests to register since here https://forums.developer.apple.com/message/374403#374403you claim that this happens on the initial login ?In that case does it make sense to revoke access of my app to the user's Apple ID in order to trigger to retreival of the mail and name again ? If so how ?
Posted Last updated
.