A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
wrap init iap connection in try/catch
ammarahm-ed359ef842e367
diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.jsindex c5f42b7bd..9c88050a7 100644--- a/apps/mobile/src/services/PremiumService.js+++ b/apps/mobile/src/services/PremiumService.js@@ -39,12 +39,15 @@ async function setPremiumStatus() {if (get()) {await subscriptions.clear();}- await RNIap.initConnection();- products = await RNIap.getSubscriptions(itemSkus);+ try {+ await RNIap.initConnection();+ products = await RNIap.getSubscriptions(itemSkus);+ } catch (e) {+ console.log('subscriptions: ',e)+ }}}-function getMontlySub() {let _product = {localizedPrice: '$4.49'