1.0.5 • Published 4 years ago

meslog-module v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Meslog Module native for React Native

1. Requirement

  • Android min API: 16
  • iOS min version: 9.0

2. Install

Install via npm by cmd :

npm install meslog-module@latest --save

Set permission for OS

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

3. Usage

Import meslog-module

import MeslogModule from 'meslog-module';

3.1 Method getLibVersion

This method use to get version of lib tracking. This method return lib version of lib tracking in callback.

MeslogModule.getLibVersion((response)=>{
	console.log("Result getLibVersion : "+ response);
});

3.2 Method getDeviceID

This method use to get information DeviceID of device. This method return deviceID in callback.

MeslogModule.getDeviceID((response)=>{
	console.log("Result getDeviceID : "+ response);
});

3.3 Method handlerAppOpen

Tracking install app or open app. This method called when app start. When first time open app, plugin will send log install and log open app. Next time, plugin will send log open app do not send .

MeslogModule.handlerAppOpen((response)=>{
	console.log("Result handlerAppOpen : "+ response);
});

Response:

  • true : When send log success
  • false : When send log failed

3.4 Method handlerAppQuit

Tracking when close app.

MeslogModule.handlerAppQuit((response)=>{
	console.log("Result handlerAppQuit : "+ response);
});

Response:

  • true : When send log success
  • false : When send log failed

3.5 Method sendLogResource

This method use to log update resource.

MeslogModule.sendLogResource((response)=>{
	console.log("Result sendLogResource : "+ response);
});

Response:

  • true : When send log success
  • false : When send log failed

4. Author

  • bienpx224@gmail.com / nghiaphamvan@vccorp.vn
  • Mysoha Mobile SDK Team

License

meslog-module is available under the MIT license. See the LICENSE file for more info.

1.0.5

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago