All Projects → mrousavy → react-native-tracking-transparency

mrousavy / react-native-tracking-transparency

Licence: MIT License
🕵️ A React Native Library for interacting with the tracking API from iOS 14.

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
c
50402 projects - #5 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to react-native-tracking-transparency

mixpanel-react-native
Official React Native Tracking Library for Mixpanel Analytics
Stars: ✭ 69 (-53.69%)
Mutual labels:  tracking, native
UberCarAnimation
This app is for animating a car like uber from one position to another with preserving angle and smooth animation
Stars: ✭ 53 (-64.43%)
Mutual labels:  tracking, ios14
SPPerspective
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration.
Stars: ✭ 271 (+81.88%)
Mutual labels:  ios14
SkylinkSDK-iOS-Sample
Temasys SkylinkSDK for iOS - Sample App - Objective C
Stars: ✭ 16 (-89.26%)
Mutual labels:  native
blockreassurance
Adds an information block aimed at offering helpful information to reassure customers that your store is trustworthy.
Stars: ✭ 15 (-89.93%)
Mutual labels:  native-module
cosmicverge
A systematic, sandbox MMO still in the concept phase. Will be built with Rust atop BonsaiDb and Gooey
Stars: ✭ 18 (-87.92%)
Mutual labels:  native
node-cryptonight
node bindings for cryptonight hashing
Stars: ✭ 15 (-89.93%)
Mutual labels:  native
3d-core-raub
An extensible Node.js 3D core for desktop applications
Stars: ✭ 55 (-63.09%)
Mutual labels:  native
DeT
Dataset and Code for the paper "DepthTrack: Unveiling the Power of RGBD Tracking" (ICCV2021), and "Depth-only Object Tracking" (BMVC2021)
Stars: ✭ 39 (-73.83%)
Mutual labels:  tracking
ti.accountkit
DEPRECATED -- 🔐 Use the Facebook AccountKit iOS-SDK with Titanium Mobile.
Stars: ✭ 18 (-87.92%)
Mutual labels:  native
macos-receiver
A MacOS TabBar (StatusBar) application that securely receives one-time passwords (OTPs) that you tapped in Raivo for iOS.
Stars: ✭ 44 (-70.47%)
Mutual labels:  native
winsafe
Windows API and GUI in safe, idiomatic Rust.
Stars: ✭ 110 (-26.17%)
Mutual labels:  native
sqair
Implementation of Sequential Attend, Infer, Repeat (SQAIR)
Stars: ✭ 96 (-35.57%)
Mutual labels:  tracking
viper
Real-time tracking and analytics using Node.js and Socket.IO
Stars: ✭ 12 (-91.95%)
Mutual labels:  tracking
appbuilders18app
The App Builders 2018 iOS and Android app built as an experiment in React Native.
Stars: ✭ 29 (-80.54%)
Mutual labels:  native
griffin-app-opensource
The Axway Griffin App goes open source!
Stars: ✭ 19 (-87.25%)
Mutual labels:  native
arcus.observability
Observability with Microsoft Azure in a breeze.
Stars: ✭ 24 (-83.89%)
Mutual labels:  tracking
EmbeddedTools
Additions to the model-based DSL for deploying Java and Native projects to remote targets
Stars: ✭ 14 (-90.6%)
Mutual labels:  native
bee-apm
BeeAPM is a distributed tracing system and APM ( Application Performance Monitoring )
Stars: ✭ 137 (-8.05%)
Mutual labels:  tracking
Java-Memory-Manipulation
User friendly, Garbage-free, and cross-platform process, module and memory interfacing via the power of Java
Stars: ✭ 51 (-65.77%)
Mutual labels:  native

react-native-tracking-transparency

🕵️ A React Native Library for interacting with the tracking API from iOS 14.





Installation

  1. Install package

    npm install react-native-tracking-transparency
    cd ios
    pod install
  2. Add NSUserTrackingUsageDescription to your Info.plist

Usage

See the example app for a full code example.

getTrackingStatus

Gets the current Tracking API status. As of iOS 14, Apple requires apps to only enable tracking (e.g.: advertiser ID collection) when the user has granted tracking permissions.

Requires iOS 14. On Android and iOS versions below 14, this will always return 'unavailable'.

import { getTrackingStatus } from 'react-native-tracking-transparency';

const trackingStatus = await getTrackingStatus();
if (trackingStatus === 'authorized' || trackingStatus === 'unavailable') {
  // enable tracking features
}

The tracking status can return one of the following values:

  • 'unavailable': The tracking API is not available on the current device. That's the case on Android devices and iPhones below iOS 14.
  • 'denied': The user has explicitly denied permission to track. You'd want to respect that and disable any tracking features in your app.
  • 'authorized': The user has granted permission to track. You can now enable tracking features in your app.
  • 'restricted': The tracking permission alert cannot be shown, because the device is restricted. See ATTrackingManager.AuthorizationStatus.restricted for more information.
  • 'not-determined': The user has not been asked to grant tracking permissions yet. Call requestTrackingPermission().

requestTrackingPermission

Requests permission to track the user. Requires an NSUserTrackingUsageDescription key in your Info.plist. (See iOS 14 Tracking API)

Requires iOS 14. On Android and iOS versions below 14, this will always return 'unavailable'.

import { requestTrackingPermission } from 'react-native-tracking-transparency';

const trackingStatus = await requestTrackingPermission();
if (trackingStatus === 'authorized' || trackingStatus === 'unavailable') {
  // enable tracking features
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].