DEV Community

Cover image for Monetize your Electron App ๐Ÿ’ฐ

Monetize your Electron App ๐Ÿ’ฐ

Jasmin Virdi on June 01, 2020

Few weeks back I started learning about building desktop applications using Electron. I was recently working on a mini project and was looking for ...
Collapse
 
enravishjeni411 profile image
enravishjeni411 • Edited

Hello, Jasmin. Thanks for the detailed post.

Minor correction:

Loadextension part of code has to be called once the app is ready.
From the electron doc:
Note: This API cannot be called before the ready event of the app module is emitted.

Collapse
 
shaijut profile image
Shaiju T • Edited

๐Ÿ˜„ Good, build apps like Wordpress or Slack using Electron ? How ? Wordpress is web based right ? And we use Electron to create desktop apps ?

Collapse
 
jasmin profile image
Jasmin Virdi

Hey Shaijut,

Yes, we do have a desktop app for wordpress. Iโ€™ve gone through an amazing post the other day. They have limited few features due to the hurdles faced but are constantly working to bring them up in next release. ๐Ÿ˜„

Collapse
 
customautosys profile image
Custom Automated Systems Pte Ltd

Hi @jasmin,

I just tried your method. However, the monetisation state is always stopped despite me having the meta tag when I inspect. I'm also getting this error the first thing in the debug console:

Error handling response: TypeError: Cannot read properties of undefined (reading 'wm2Allowed')

Any idea what's wrong? I copied the coil extension folder from chrome into my app, and it's loading it from there (according to electron, the extension was successfully loaded).