In-app purchases enable content or subscriptions to be purchased directly from within apps. This gives developers an easy way to embrace the freemium business model, wherein users pay nothing to download an app and are offered optional in-app purchases for premium features, additional content, or subscriptions.
The new API was added to Electron by community contributor Adrien Fery to enable in-app purchases in Amanote, a note-taking Electron app for lectures and conferences. Amanote is free to download and allows clear and structured notes to be added to PDFs, with features like mathematical formulae, drawings, audio recording, and more.
Since adding in-app purchase support to the Mac version of Amanote, Adrien has noted a 40% increase in sales!
inAppPurchase API has already landed in the latest Electron beta:
npm i -D electron@beta
More improvements to the API are in the works, and will soon be landing in an upcoming Electron beta release.
Up next, Adrien is hoping to open a new revenue channel for Amanote by adding support for Microsoft Store in-app purchases in Electron. Stay tuned for developments on that!