Magnet Max is a comprehensive, mobile-first messaging solution with enterprise grade capabilities for next generation mobile apps.
Learn more about Magnet Message here.
The SDK is available as a javascript file. The latest version can be downloaded from Download Magnet Max JavaScript SDK. Once downloaded, install it into your web application by placing it in your HTML file with a script tag reference to the file.
<!DOCTYPE html>
<html>
<head>
<title>My Web App</title>
<script type="text/javascript" src="//cdn.magnet.com/downloads/magnet-max-sdk.min.js"></script>
</head>
<body></body>
</html>The quickest way to learn how to use the SDK is to follow the examples provided in the three sample apps. Start with the Get Started (/samples/web/getstarted)
for a simple tutorial, then move onto Messenger (/samples/web/messenger), a cool real-time messaging app built with Magnet Message and the Ionic Framework.
- go to directory
/samples/web/getstarted - open
index.htmland change the clientId and clientSecret in/samples/web/messenger/www/app.jswith the keys from an app created in the Magnet Sandbox
Max.init({
clientId: '<your client id>',
clientSecret: '<your client secret>',
baseUrl: 'https://sandbox.magnet.com/mobile/api'
});
- open
index.htmlin a web browser. - from the Magnet Sandbox Get Started page, send and receive messages between the two pages.
- install Ionic Framework
- edit the clientId and clientSecret in
/samples/web/messenger/www/app.jswith the keys from an app created in the Magnet Sandbox
Max.init({
clientId: '<your client id>',
clientSecret: '<your client secret>',
baseUrl: 'https://sandbox.magnet.com/mobile/api'
});
- go to directory
/samples/web/messenger - run
ionic serve - open a browser and go to
http://localhost:8100. - register two users on two different web browsers, login, and start sending messages!
First, install dependencies by running npm install
- build the SDK: go to
/js-sdkdirectory and rungrunt - build minified SDK: go to
/js-sdkdirectory and rungrunt min - build the SDK and documentation:
grunt docs - build the SDK, minified SDK, and documentation:
grunt full - build the SDK and run tests:
grunt test
This is a beta version. Please support our development by creating issues with any bugs or feature requests.