1. Installation
First, you need to configurenpm to use GitHub Packages. Create a .npmrc file in your project’s root directory with the following content:
YOUR_NPM_TOKEN with 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
Now, you can install the Electron package:
2. Implementation
Here’s a basic example of how to integrate into your Electronmain.ts file.
First, import Mellowtel and initialize it in your main process file:
IDENTIFIER.
Other available methods are:
showConsentSettings(window: BrowserWindow)optIn()optOut()getOptInStatus()
optIn() method. It is also mandatory to leave a settings option to manage
their status and leave links to the Terms of Service and Privacy Policy.