Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Kontakt.io SDK Versions of newest release:

| OS | SDK Version |
| :---------- | :--------------------------------------------------------------------------------------------------- |
| **Android** | [7.0.6](https://kontakt-api-docs.stoplight.io/docs/dev-ctr-sdks/423dcaf4067cc-android-sdk-changelog) |
| **iOS** | [3.0.25](https://github.com/kontaktio/kontakt-ios-sdk/releases/tag/v3.0.25) |
| **Android** | [7.2.23](https://kontakt-api-docs.stoplight.io/docs/dev-ctr-sdks/423dcaf4067cc-android-sdk-changelog#version-7223) |
| **iOS** | [3.1.0](https://github.com/kontaktio/kontakt-ios-sdk/releases/tag/3.1.0) |

## Advantages

Expand Down Expand Up @@ -203,43 +203,43 @@ export default App;

**Note (March 2020)**: The example in the `Example/` folder is a bit outdated. If you want to try to run the example app anyway, here are some instructions to do so:

1. Clone this repository, connect an Android and/or Apple device to your computer and have some (Kontakt.io) beacons nearby.
1. Clone this repository, connect an Android and/or Apple device to your computer and have some (Kontakt.io) beacons nearby.

2. Open a terminal window, bash to the `Example/` folder, run `npm install` and start the react-native server
2. Open a terminal window, bash to the `Example/` folder, run `npm install` and start the react-native server

```bash
$ cd react-native-kontaktio/Example
$ npm install
$ npm start
cd react-native-kontaktio/Example
npm install
npm start
```

3. Build the example and run it on your device. The app will appear under the name `KontaktIoSimpleTest`:
3. Build the example and run it on your device. The app will appear under the name `KontaktIoSimpleTest`:

- Android:

```bash
$ react-native run-android
react-native run-android
```

- iOS

```bash
$ react-native run-ios
react-native run-ios
```

## Further notes

- Beacons support is part of Android versions 4.3 and up. \* So far the lowest Android version this library was tested on was a device with Android 4.4.2.
- A physical device must be used for testing and some beacons (Kontakt.io beacons to be able to use all features).
- If some BLE Beacons are filtered out by the scan on Android 12+, therefore not returned in the list of beacons, try this:

```xml
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" tools:remove="android:usesPermissionFlags" />
```
With the **neverForLocation** android:usesPermissionFlags, some BLE beacons are filtered from the scan results. |More information about this on [issue #121](https://github.com/Driversnote-Dev/react-native-kontaktio/issues/121#issuecomment-2098884380).


With the **neverForLocation** android:usesPermissionFlags, some BLE beacons are filtered from the scan results. |More information about this on [issue #121](https://github.com/Driversnote-Dev/react-native-kontaktio/issues/121#issuecomment-2098884380).

## ToDo:
## ToDo

- Update Android Eddystone feature:

Expand All @@ -262,6 +262,7 @@ export default App;
"react-native-kontaktio": "../react-native-kontaktio"
},
```

6. Build and run on a real device

### Upgrade to a new version of the Kontakt.io SDK
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "io.kontakt.mvn:sdk:7.0.6"
implementation "io.kontakt.mvn:sdk:7.2.23"
}
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/CLBeacon+Kontakt.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2016 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKAction.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2015 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKActionContent.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2015 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKBeaconManager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKBeaconRegion.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKCloudClient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKCloudDefinitions.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2017 Kontakt.io. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKCloudModel.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2015 Kontakt.io. All rights reserved.
//
Expand Down
17 changes: 16 additions & 1 deletion ios/KontaktSDK.framework/Headers/KTKDevice.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down Expand Up @@ -81,6 +81,21 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, strong, readonly) NSString *orderID;

/**
* Filtration Mask of the device. (read-only)
*/
@property (nonatomic, assign, readonly) KTKDeviceFilteringClass filtrationMask;

/**
* Ble Scan Channel of the device. (read-only)
*/
@property (nonatomic, assign, readonly) KTKDeviceBLEChannel bleScanChannel;

/**
* WIFI SSID of the device. (read-only)
*/
@property (nonatomic, strong, readonly) NSString *wifiSSID;

/**
* Device type. (read-only)
*
Expand Down
31 changes: 30 additions & 1 deletion ios/KontaktSDK.framework/Headers/KTKDeviceConfiguration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down Expand Up @@ -165,6 +165,35 @@ __attribute__((deprecated("Please use `packets` property instead")));
//@property (nonatomic, strong, readwrite) NSArray <NSNumber *>* _Nullable footfallLine;
@property (nonatomic, copy, readwrite) NSString * _Nullable footfallLine;


/**
* Bluetooth blink Interval value.
*
* This property can be used Blink time for IR emitter, in seconds. 0 - disabled. Default: 2 (s)
*/
@property (nonatomic, strong, readwrite) NSNumber * _Nullable blinkInterval;

/**
* Bluetooth ir detection interval value.
*
* This property can be used to set seconds to sleep between detection attempts. Default: 5 (s)
*/
@property (nonatomic, strong, readwrite) NSNumber * _Nullable irDetectionInterval;

/**
* Bluetooth ir detection duration value.
*
* This property can be used to set seconds to try and detect the IR signal, before going to sleep again. Default: 2 (s)
*/
@property (nonatomic, strong, readwrite) NSNumber * _Nullable irDetectionDuration;

/**
* Bluetooth ir detection sleep value.
*
* This property can be used to set seconds 0: disabled, 1: enabled. Default: 1
*/
@property (nonatomic, strong, readwrite) NSNumber * _Nullable irDetectionSleep;

/**
* Bluetooth Scan interval value.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2018 Kontakt.io. All rights reserved.
//
Expand Down
13 changes: 10 additions & 3 deletions ios/KontaktSDK.framework/Headers/KTKDeviceConnection.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
Expand Down Expand Up @@ -186,12 +186,19 @@ typedef void (^KTKDeviceConnectionUpdateCompletion)(BOOL synchronized, NSError *
- (void)readConfigurationWithCompletion:(KTKDeviceConnectionReadCompletion)completion;

/**
* Synch the tocken from the connection device.
* Send the current time to the connected device.
*
* @param completion A block object to be executed when the write operation finishes.
*/
- (void)syncTimeWithCompletion: (void (^)(NSError * _Nullable))completion;

/**
* Synch the token from the connection device.
*
* @param firmware The version firmware object for update device
* @param completion A block object to be executed when the read operation finishes.
*/
- (void)synchDeviceConfigurationWithCompletion: (void (^)(__kindof KTKDeviceConfiguration * _Nullable, NSString *firmware, NSError * _Nullable))completion ;
- (void)synchDeviceConfigurationWithCompletion: (void (^)(__kindof KTKDeviceConfiguration * _Nullable, NSString *firmware, NSError * _Nullable))completion;

/**
* Listens for sensors updates from the connection device.
Expand Down
2 changes: 1 addition & 1 deletion ios/KontaktSDK.framework/Headers/KTKDeviceCredentials.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2015 Kontakt.io. All rights reserved.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// KontaktSDK
// Version: 3.0.25
// Version: 3.1.0
//
// Copyright © 2017 Kontakt.io. All rights reserved.
//
Expand Down
Loading