Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emartech/me-sdk-bridge

Package Overview
Dependencies
Maintainers
161
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emartech/me-sdk-bridge

Copyright EMARSYS 2017 All rights reserved.

  • 1.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
Maintainers
161
Weekly downloads
 
Created
Source

Me-Sdk-Bridge-Js npm version

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

MEIAM.buttonClicked(<buttonId>, <callback>)
MEIAM.close(<callback>)
MEIAM.makeNetworkRequest(<url>, <method>, <headers>, <payload>, <callback>)
MEIAM.openExternalLink(<url>, <callback>)
MEIAM.requestPushPermission(<callback>)
MEIAM.triggerAppEvent(<name>, <payload>, <callback>)
MEIAM.triggerMEEvent(<name>, <payload>, <callback>)
MEIAM.gotoStep(<name>, <callback>)

Custom Attributes provided by the bridge

me-button-clicked="<buttonId>"
me-close=""
me-make-network-request='{"url": "<url>", "method": "<method>", "headers": <headers>, "payload": <payload>}'
href="<url>"
me-request-push-permission=""
me-trigger-app-event='{"type": "<name>", "payload": <payload>}'
me-trigger-event='{"type": "<name>", "payload": <payload>}'
me-goto-step="<name>"

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>

Full explanation


Copyright EMARSYS 2017 All rights reserved.

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc