AlexDisler / cordova-plugin-inapppurchase

A lightweight cordova plugin for in app purchases on iOS/Android
316 stars 192 forks source link

Your app should be single page to use in-app-purchases. onReset is not supported. #238

Open varienos opened 6 years ago

varienos commented 6 years ago

Please include:

Your code / steps to reproduce

inAppPurchase .getProducts(['com.rateourrestroom.supervisor']) .then(function (products) { console.log('----------------------------------------'); console.log(products); console.log('----------------------------------------'); / [{ productId: 'com.yourapp.prod1', 'title': '...', description: '...', currency: '...', price: '...', priceAsDecimal: '...' }, ...] / }) .catch(function (err) { console.log('inAppPurchaseStart: Error'); console.log(err); });


### Console output
InAppPurchase[objc] (before init): WARNING: Your app should be single page to use in-app-purchases. onReset is not supported.

### Version of cordova
4.5.4

### Version of iOS/Android
11.4.1 / iOS
mcfarljw commented 6 years ago

I am kind of curious what this means as well.

thewebsitetherapist commented 6 years ago

My GUESS having worked with setting up the plugin for my app, is that this warning comes up in systems that reset cordova plugins on page change. If your IAP code is spread over multiple pages this will impact you. If its self contained in one page then it won't matter.

Can anyone confirm & add to the official docs please?

NikolayDonev commented 5 years ago

I am getting the same error which I think results in app being stuck on the splash screen only on iOS device version 10.3. Any ideas what might be wrong?

harryt2 commented 5 years ago

I am having the same problem. It's loading the splash screen, then it's just blank. In the Safari inspector it says "Error loading resource" about cordova.js