meslog-module
v1.0.5
Published
meslog-module for react-native
Downloads
8
Maintainers
Readme
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
- [email protected] / [email protected]
- Mysoha Mobile SDK Team
License
meslog-module is available under the MIT license. See the LICENSE file for more info.