diego-link-eggy/phonegap-cordova-moxtra-plugin

Moxtra Functionality Integrated
Diego Link0.1.03
platforms: ios
$ cordova plugin add com.phonegap.MoxtraIntegration

phonegap-cordova-moxtra-plugin

Moxtra Integration

Currently only adds MEET functionality to IOS projects. Will be updates as Moxtra adds functions and platforms.

Installation

Project Structure

  |_src
  | |_ios
  |   |APPMoxtraIntegration.m
  |   |APPMoxtraIntegration.h
  |   |MoxtraSDK.sdk
  |   | | MoxtraSDK
  |   | | MoxtraSDK.h
  |   | | MoxtraSDKResources.bundle
  |_www
  |  |_moxtra-integration.js

Follow the Command-line Interface Guide.

If you are not using the Cordova Command-line Interface, follow Using Plugman to Manage Plugins.

Get your APP_ID and CLIENT_SECRET and from Moxtra Developer Site

Change the Plugins/APPMoxtraIntegration.m file where you insert your APP_ID and CLIENT_SECRET that you got from Moxtra.

Usage Example.

<script type="text/javascript" charset="utf-8">

            // Wait for device API libraries to load
            //
            document.addEventListener("deviceready", onDeviceReady, false);


            function onStartMoxtraMeet() {
               console.log('start meet callback');
            }

            function onEndMoxtraMeet() {
                console.log('end meet callback');
            }



         //
            function onSuccess(acceleration) {
                console.log('');
            }

            // onError: Failed to get the acceleration
            //
            function onError() {
                alert('onError!');
            }

        function onDeviceReady() {
            window.moxtra.startmeet(onSuccess, onError, "My Meet Topic", onStartMoxtraMeet, onEndMoxtraMeet);
        }

        </script>