Moengage.enableSdk()
Prerequisite step(s):
Add the below import statement to the top of your service worker file.
// Service Worker import statement will be generated here
Add this snippet to the top of the <head> section of your root HTML file:
<head>
Copy and paste the generated script below into your JavaScript file where you want to initialize the SDK.
// Your generated configuration will appear here after clicking "Generate Configuration"
Postrequisite step(s):