Cap-go / native-purchases

Manage IAP on capacitor with latest libs Android IOS
https://capgo.app
7 stars 1 forks source link

App is crash when purchaseProduct() methode #46

Open lapisanlangit opened 3 weeks ago

lapisanlangit commented 3 weeks ago

Thank you for your plugin, is very easy to use. I have succeeded get products and show in list price in apps, but when i call purchaseProduct methode, application is crash and automacally out. try { const transaction = await NativePurchases.purchaseProduct({ productIdentifier: productId, productType: PURCHASE_TYPE.INAPP // or PURCHASE_TYPE.SUBS for subscriptions }); console.log('Purchase successful:', transaction); // Handle the successful purchase (e.g., unlock content, update UI) } catch (error) { console.error('Purchase failed:', error); }

no error is shown because apps is out, so I can't give error message. please help me, I am using Angular 18, Ionic 8, Capacitor 6

lapisanlangit commented 2 weeks ago

no info about this?

riderx commented 1 week ago

sorry i didn't got email from your first issue.

riderx commented 1 week ago

It's ios or android?

lapisanlangit commented 1 week ago

Android.. I am using ionic framework. I am build new blank app and only add this native-purchase library also crash and out

lapisanlangit commented 1 week ago

no update?

riderx commented 1 day ago

Sorry i didn't saw your answer @WcaleNieWolny can you have a look ?