HomeiOS Developmentios - Flutter in-app-purchase fails to revive buy

ios – Flutter in-app-purchase fails to revive buy


I submitted an difficulty to the Flutter repo, however that is very bizarre. It appears moderately like an Apple difficulty.

Principally, the restore buy fails with an error. It may very well be a Sandbox setting stuff, however we will not ship with out confirming this within the Sandbox setting.

This code is meant to ship a beforehand bought product to my buy stream,

              strive {
                await _inAppPurchase.restorePurchases();
              } catch (e) {
                if (e is SKError) {
                  debugPrint(
                      "SKError code: '${e.code}', userInfo: '${e.userInfo}'");
                }
              }

However as an alternative, it’ll emit error within the debug console, and there’s no bought merchandise coming into my buy stream.

flutter: SKError code: '-1202', userInfo: '{NSLocalizedDescription: このサーバの証明書は無効です。“mzstorekit-sb.itunes.apple.com”に偽装したサーバに接続している可能性があり、機密情報が漏えいするおそれがあります。, NSUnderlyingError: {area: kCFErrorDomainCFNetwork, userInfo: {_kCFStreamPropertySSLClientCertificateState: 0, _kCFNetworkCFStreamSSLErrorOriginalValue: -9807, kCFStreamPropertySSLPeerTrust_desc: <SecTrustRef: 0x7c8a61cd0>, _kCFStreamErrorDomainKey: 3, _kCFStreamErrorCodeKey: -9807, kCFStreamPropertySSLPeerCertificates: [<cert(0x7c9810800) s: mzstorekit.itunes.apple.com i: Apple Public EV Server RSA CA 2 - G1>, <cert(0x7c984c800) s: Apple Public EV Server RSA CA 2 - G1 i: DigiCert High Assurance EV Root CA>, <cert(0x7c9846200) s: DigiCert High Assurance EV Root CA i: DigiCert High Assurance EV Root CA>]}, code: -1202}}'

The Japanese half mainly says

‘The certificates for this server is invalid. There’s a chance that you’re connecting to a server impersonating “mzstorekit-sb.itunes.apple.com,” and confidential info could also be leaked.’

Did anyone encounter this error? How did you handle to work round?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments