npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-geosentry

v1.0.12

Published

React Native SDK for Geosentry location services integration

Readme

react-native-geosentry

A React Native SDK for integrating Geosentry location services into your mobile applications.

Installation

npm install react-native-geosentry
# or
yarn add react-native-geosentry

Setup

iOS

  1. Add the following to your Podfile:
pod 'react-native-geosentry', :path => '../node_modules/react-native-geosentry'
  1. Run pod install:
cd ios && pod install
  1. For proper location tracking, ensure your Info.plist contains the required location permission keys:
<key>NSLocationWhenInUseUsageDescription</key>
<string>We need your location to provide you with relevant services.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>We need to track your location in the background to provide you with relevant alerts.</string>
<key>UIBackgroundModes</key>
<array>
    <string>location</string>
</array>

Android

  1. No additional linking required. The package will be automatically linked.

  2. In your AndroidManifest.xml, ensure you have the following permissions:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

Android AAR Integration

This package includes the Geosentry Android SDK as an AAR file (android/libs/geosentry_sdk_uat.aar).

When you install this package, the AAR file will be available in your node_modules directory and automatically linked via Gradle. No manual steps are required unless you need to use a different AAR file.

If you need to use a custom AAR, replace the file in android/libs/ and rebuild your project.

Usage

import Geosentry from 'react-native-geosentry';

// Initialize the SDK
const initializeSDK = async () => {
  try {
    const apiKey = 'YOUR_API_KEY';
    const cipherKey = 'YOUR_CIPHER_KEY';
    const userID = 'USER_ID';
    const response = await Geosentry.initializeSDK(apiKey, cipherKey, userID);
    console.log('SDK Initialization Success:', response);
  } catch (error) {
    console.error('SDK Initialization Error:', error);
  }
};

// Stop location tracking
const stopLocationTracking = async () => {
  try {
    const response = await Geosentry.stopTracking();
    console.log('Tracking stopped:', response);
  } catch (error) {
    console.error('Failed to stop tracking:', error);
  }
};

API Reference

initializeSDK(apiKey: string, cipherKey: string, userID: string): Promise<any>

Initializes the Geosentry SDK with the provided credentials. This will also request necessary permissions for location tracking.

Parameters:

  • apiKey: Your Geosentry API key
  • cipherKey: Your Geosentry cipher key
  • userID: Unique identifier for the user

Returns:

A promise that resolves when the SDK is successfully initialized.

stopTracking(): Promise<string>

Stops the location tracking service.

Returns:

A promise that resolves with a success message when tracking is successfully stopped.

Requirements

  • iOS: 13.0 or higher
  • Android: API level 23 (Marshmallow) or higher
  • React Native: 0.63 or higher

Troubleshooting

iOS

  • If you encounter Undefined symbol errors during build, ensure that the Geosentry_SDK.framework is properly embedded in your app target.

Android

  • For Android 11+ (API level 30+), ensure you have added the background location permission to your manifest and are requesting it at runtime.

License

MIT