Skip to content

To test the integration of Sentiance together with React Native Background Geolocation

Notifications You must be signed in to change notification settings

tofoli/rn-sentiance-geolocation-demo

Repository files navigation

Demo Sentiance with Background Geolocation

Purpose

To test the integration of Sentiance together with React Native Background Geolocation

Debug

Background Geolocation

Change APP_IDENTIFY constant in file src/task/GeolocationTask.js

import  BackgroundGeolocation  from  'react-native-background-geolocation';
import  DeviceInfo  from  'react-native-device-info';
import  Log  from  'react-native-device-log';

const  APP_IDENTIFY = '****'; // << -- here

export  default  class  GeolocationTask {

Is only a string identifier to separate information on the server side To view the information, go to http://tracker.transistorsoft.com/APP_IDENTIFY

Sentiance

Configure the access keys in the files

ios/Sentiance/AppDelegate.m

- (void) initializeSentianceSdk:( NSDictionary*) launchOptions sentiance:( RNSentiance*)sentiance {

  NSString *APP_ID = @"***"; // << -- here
  NSString *SECRET = @"***"; // << -- here

  //user linking disabled
  //SENTConfig *config = [[SENTConfig alloc] initWithAppId:APP_ID secret:SECRET link:nil launchOptions:launchOptions];

android/app/src/main/java/com/sentiance/MainApplication.java

public class MainApplication extends Application implements ReactApplication {
  private static final String SENTIANCE_APP_ID = "***"; // << -- here
  private static final String SENTIANCE_SECRET = "***"; // << -- here

  private final RNSentiancePackage rnSentiancePackage = new RNSentiancePackage();

About

To test the integration of Sentiance together with React Native Background Geolocation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published