# Add PinchSDK
# Prerequisites
The following criterias must be fulfilled to implement the SDK:
- Minimum iOS target: 9.0
- Minimum Android SDK version: 15
- Minimum Android compile version: 28
- Java 8+
Latest Update | Current Stable Release |
---|---|
November 23, 2022 | 1.5.0 |
# Install native module package
You can install packages from the command line with yarn or npm:
# Android
IMPORTANT
A runtime exception will be thrown if API key is missing during application launch.
In your android projects AndroidManifest.xml
, add the following element as a child of the <application>
element by inserting it just before the closing </application>
tag:
If your project utilizies ProGuard, add the following exception to your ProGuard definition:
-keepclassmembers class com.fluxloop.pinch.core.model.** { *; }
# iOS
Navigate to your projects iOS directory and install the pods imported by the PinchSDK module, and open your xcworkspace
:
$ cd ios
$ pod install
$ open <ProjectName>.xcworkspace
2
3
In your AppDelegate didFinishLaunchingWithOptions
add the following method call:
Add bluetooth-central
to your applications background modes. This allows us to scan for eddystone data without having access to users location.
# Import it
PinchSDK can now be used by importing it:
import { Pinch } from 'react-native-pinch-sdk'