Socket
Socket
Sign inDemoInstall

cordova-plugin-motrixi

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-motrixi

Cordova motrixi Plugin


Version published
Weekly downloads
1
decreased by-92.31%
Maintainers
1
Install size
377 kB
Created
Weekly downloads
 

Readme

Source

Installation

cordova plugin add cordova-plugin-motrixi

Supported Platforms

  • Android

Usage

document.addEventListener('deviceready', () => {
  if (window.motrixi) {
  // add collect data event listener
  window.motrixi.on(
    'getInformation',
    info => {
    console.log('Log: motrixi.uploadInfo -> info', info)
    },
    error => {
      console.log('Log: motrixi.uploadInfo -> error', error)
    }
  )
}
 // init sdk with app key
  window.motrixi.init(APP_KEY)
}, false)

Api

  • init:
 window.motrixi.init(APP_KEY)

  • receive data from native SDK:
 window.motrixi.on(
    'getInformation',
    info => {
    console.log('Log: motrixi.uploadInfo -> info', info)
    },
    error => {
      console.log('Log: motrixi.uploadInfo -> error', error)
    }

  • reset consent form:
window.motrixi.reset()
  • upload data:
window.motrixi.upload()

Keywords

FAQs

Last updated on 25 Mar 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc