README
Me-Sdk-Bridge-Js
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.
How to integrate
Include the uglified version (index.min.js
) in the html.
Methods provided by the bridge
<buttonId>
, <callback>
)
MEIAM.buttonClicked(<callback>
)
MEIAM.close(<url>
, <method>
, <headers>
, <payload>
, <callback>
)
MEIAM.makeNetworkRequest(<url>
, <callback>
)
MEIAM.openExternalLink(<callback>
)
MEIAM.requestPushPermission(<name>
, <payload>
, <callback>
)
MEIAM.triggerAppEvent(<name>
, <payload>
, <callback>
)
MEIAM.triggerMEEvent(<name>
, <callback>
)
MEIAM.gotoStep(Custom Attributes provided by the bridge
<buttonId>
"
me-button-clicked="me-close=""
<url>
", "method": "<method>
", "headers": <headers>
, "payload": <payload>
}'
me-make-network-request='{"url": "<url>
"
href="me-request-push-permission=""
<name>
", "payload": <payload>
}'
me-trigger-app-event='{"type": "<name>
", "payload": <payload>
}'
me-trigger-event='{"type": "<name>
"
me-goto-step="Setting Up the Service
npm install
Running the tests
npm t
Run the test page
Install http-server first
npm i http-server -g
Start http-server in the lib's directory, for options see the documentation
http-server [options]
You can access the test page on http://localhost:8080/test.html
Default Commit Message Format
This module ships with the AngularJS Commit Message Conventions and changelog generator, but you can define your own style.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject and a JIRA ticket id:
<type>(<scope>): <subject>
<BLANK LINE>
<body> - <JIRA ticket id>
<BLANK LINE>
<footer>
Copyright EMARSYS 2017 All rights reserved.