Skip to content

Instantly share code, notes, and snippets.

@panda-moe-zz
Last active September 15, 2017 08:38
Show Gist options
  • Save panda-moe-zz/a0658865be3ec2c207d886c66e4904a0 to your computer and use it in GitHub Desktop.
Save panda-moe-zz/a0658865be3ec2c207d886c66e4904a0 to your computer and use it in GitHub Desktop.
Moengage Integration in RequireJS
require.config({
paths: {
custom1: 'custom1', // Your custom module
custom2: 'custom/custom2', // Another custom module in a sub-directory
}
});
require([
'app',
"https://cdn.moengage.com/webpush/moe_webSdk.min.latest.js",
], function (App) {
Moengage = moe({
app_id: "YOUR_APP_ID",
debug_logs: 0
});
// All moengage methods only available in this scope
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment