ios - In-App Purchases Crashing App With No Internet Connection -


My in-app purchases work but if I signal and slow your iPhone Wi-Fi without the use of cellular connection or signal I'm getting this message:

neither came exception 'NSInvalidArgumentException', due to the end because of the application: "invalid product identifier (zero ) '

Check the Internet connection before enabling the buy button Should I? I hope that is the easiest way. All I need is to hold no connection to StoreKit error.

Update

With my in-app I'm able to make purchases code some changes you can also download

My app is for iOS 8 and 7, and this tutorial is for iOS 6. Maybe this is a problem.

I just (zero) paymentQueue: (SKPaymentQueue *) line restoreCompletedTransactionsFailedWithError: (NSError *) error application and restore SKPaymentTransactionStateDeferred case to catch the error

(Zero -

 :  

Rep didFailWithError release method to prevent an accident ) request: (a SKRequest *) request FailWithError: (NSError *) error {NSLog (@ "failed to load the list of products."); _productsjent = zero; _completionHandler (no, zero); _completionHandler = Zero; request. Delegate = zero; // Release the Representative}


Comments