
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mappls-intouch-react-native
Advanced tools
Get Real-Time Location Tracking for your apps with Mappls InTouch SDK for React Native. Track a user's live location with our simplified InTouch SDK integration (for Android), highly customizable to your specific needs. The InTouch SDK comes with a varie
Get Real-Time Location Tracking for your apps with Mappls InTouch SDK. Track a user's live location with our simplified InTouch React native SDK integration, highly customizable to your specific needs.
The InTouch SDK comes with a variety of events that enable better control and power over your tracking needs. Also get location benefits built for various applications including logistics, delivery tracking, employee tracking, and live location sharing.
To get started, explore the InTouch Demo App.
Already have an application which is build on React Native? Give it a boost with the powerful features of InTouch.
We use your Client ID to identify your account details and assign all your user's devices under a single account.
To get your Outh2 Rest API Client ID and Client Secret please login to Mappls API Dashboard
Please contact apisupport@mapmyindia.com to get InTouch SDK access to your Client ID
After getting the access, you can start with the InTouchDemo app, or Integrate the InTouch SDK in your app.
This guide allows you to add live location tracking to your react native app. Visual Studio is the recommended development environment for building an app with the Mappls InTouch React native SDK or you can use any other IDE.
Click here to download the InTouchDemo App Project. Open this project in Visual Studio
Add the Client Id and Client Secret to InputScreen.js file.
Run npm install
Run project on your device using simulator instance using below mentioned command line.
npx react-native run-android
Install the below mentioned library in your project.
npm install mappls-intouch-react-native --save
react-native link mappls-intouch-react-nativeFor Android and Ios add the below mentioned lines
android/build.gradle file:-allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
+ maven { url 'https://maven.mappls.com/repository/mappls/'}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
android/app/build.gradle file:-defaultConfig {
applicationId "com.intouch_react_native_sample"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
+ multiDexEnabled true
}
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Your location is used to personalize content.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Your location is used to personalize content.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is used to personalize content.</string>
<key>NSMotionUsageDescription</key>
<string>In order to count steps I need an access to your pedometer</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>location</string>
</array>
#import <MapplsIntouchCore/MapplsIntouchCore.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[Intouch.shared setup];
}
Enable background fetch and location updates from Signing and Capabilities
run pod install from ios folder
import MapplsIntouch from 'mappls-intouch-react-native-sdk';
const status = await MapplsIntouch.isInitialized();
Initialize the SDK with your Client ID and Client Secret and device name.Device name helps to identify the user on Portal.
MapplsIntouch.initialize(deviceName,clientId,clientSecret)
.then(entityId => {
console.log(entityId);
}).catch(err=>{
console.log(err.message)
});
Initialize the SDK with your Client ID , Client Secret , device name and deviceId. deviceId should be unique ID for every user.
MapplsIntouch.initializeWithDeviceId(deviceName,clientId,clientSecret,deviceId,
(result) => {
if (result === 'success') {
//success
} else {
//error
});
Note:This method can be used in case if your users uses two mobile phone. In this case, Both the mobile phone data will be pushed against the same deviceID. So ensure that before user logging into the new phone, logout the user from previous phone and call the stop tracking method. So that always tracking data will come from the single phone.
const status = await MapplsIntouch.isRunning()
Track your app user's phone live location by using the below method.
MapplsIntouch.startTracking();
You can start tracking using below three options
MapplsIntouch.startTracking(MapplsIntouch.BEACON_PRIORITY_OPTIMAL);
Note: If no priority provided default will be used.
MapplsIntouch.startTrackingWithCustomConfig({
standByTimeInMins: 1,//mandatory
timeWhileMovingInSec: 10,//mandatory
enableRequestPermissionIfMissing:true
autoTrackingConfig: {endTimeConfig: {hour: 7, minute: 58, amPm: "pm"}}
});
timeWhileMovingInSec:(number) tracking api hit time while moving in seconds.
standByTimeInMins:(number) tracking api hit time while standby in minutes.
am or pm. Default value is amTo stop your app user's phone live location tracking use the below mentioned method.
MapplsIntouch.stopTracking();
This method will be called when tracking starts, stops or some tracking error is caught.
MapplsIntouch.addTrackingStateListener((event) => {
if(event === 'onTrackingStart'){
}else if(event === 'onTrackingStop'){
}
},(error)=>{
console.log(error.message);
});
This method will remove TrackingStateListener. Call this method before Unmounting component.
MapplsIntouch.removeTrackingStateListener();
Updates single location on server and return to the user
try {
const res= await MapplsIntouch.getCurrentLocationUpdate();
//do something with response
} catch (e) {
//error log
}
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support
Need support? contact us!
FAQs
Get Real-Time Location Tracking for your apps with Mappls InTouch SDK for React Native. Track a user's live location with our simplified InTouch SDK integration (for Android), highly customizable to your specific needs. The InTouch SDK comes with a varie
The npm package mappls-intouch-react-native receives a total of 59 weekly downloads. As such, mappls-intouch-react-native popularity was classified as not popular.
We found that mappls-intouch-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.