This script provides a JS interface that can be injected into an In App Message's html to make communication with the Mobile Engage SDK easier. The following methods are available on the global MEIAM
object.
Include the uglified version (index.min.js
) in the html.
Reports button click with given id.
Closes the in-app message. Note that no click event is reported.
me-make-network-request='{"url": "<url>
", "method": "<method>
", "headers": <headers>
, "payload": <payload>
}'
Copies the value to the clipboard when clicked.
npm install
npm run test:lint
npm run test:unit
npm run test:e2e
A new version is automatically published when merged into master. It's using the Semenatic Release package to create the new version.