Latest 1.0.2
Homepage https://github.com/jetbeep/ios-sdk
License The MIT License (MIT)
Platforms ios 10.0
Dependencies PromisesSwift, CryptoSwift, SQLite.swift
Authors

Hardware setup

https://drive.google.com/drive/u/1/folders/1exPvE0fJYBYEf-XRj5r4i4IQqMalLuma

Steps for project setup:

add our pod:

pod 'JetBeepFramework'

call

pod install

pod update

in your terminal

Open your project workspace.

Select tab: Capabilities

Scroll to Background Modes:

Switch on it and mark as selcted next bars:

  • Location updates,
  • Uses Bluetooth LE accessories
  • Acts as a Bluestooth LE accessory – switch on

Open Info.plist
Add Required background modes – key with description, somethings like: App shares data using CoreBluetooth

Do the same for the next keys:

  • NSBluetoothPeripheralUsageDescription
  • NSBluetoothPeripheralUsageDescription
  • NSLocationAlwaysAndWhenInUseUsageDescription
  • NSLocationWhenInUseUsageDescription

Now you are ready to go!

Fields that a requierd for anonymous type of registration you can impolement them at your AppDelegate

Select dev server for tests!

JetBeep.shared.devServer = true
JetBeep.shared.registrationType = .anonymous
JetBeep.shared.setup(appName: your app name that you can request from our side, appTokenKey: your app token key that you can request from our side)
JetBeep.shared.serviceUUID = your app serviceUUID that you can request from our side

Instance of barcode handler protocol, it will be used when you will provide barcodes

JetBeep.shared.barcodeRequestHandler = barcodeHandler

Handle result on your place to track is barcodes transfering moved succeed or not
barcodeHandler.delegate = self

Add location manager

locationManager.delegate = self locationManager.requestAlwaysAuthorization()

Add peripheral Manager

peripheralManager = CBPeripheralManager(delegate: self, queue: nil)

Working implementation you can find at our file: JetBeepAnonymouseController.swift

Fields that a requierd for registered type of registration you can impolement them at your AppDelegate
Select dev server for tests!

JetBeep.shared.devServer = true
JetBeep.shared.registrationType = .registered
JetBeep.shared.setup(appName: your app name that you can request from our side, appTokenKey: your app token key that you can request from our side)
JetBeep.shared.serviceUUID = your app serviceUUID that you can request from our side

Add location manager

locationManager.delegate = self locationManager.requestAlwaysAuthorization()

Add peripheral Manager

peripheralManager = CBPeripheralManager(delegate: self, queue: nil)

Working implementation you can find at our file: JetBeepRegisteredController.swift

Latest podspec

{
    "name": "JetBeepFramework",
    "version": "1.0.2",
    "summary": "JetBeep SDK.",
    "homepage": "https://github.com/jetbeep/ios-sdk",
    "authors": {
        "Oleh Hordiichuk": "[email protected]"
    },
    "license": {
        "type": "The MIT License (MIT)",
        "file": "LICENSE"
    },
    "source": {
        "http": "https://github.com/jetbeep/ios-sdk/raw/master/JetBeepFramework.zip"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.0",
    "dependencies": {
        "PromisesSwift": [
            "~> 1.2.4"
        ],
        "CryptoSwift": [
            "~> 0.7.2"
        ],
        "SQLite.swift": [
            "~> 0.11.5"
        ]
    },
    "ios": {
        "vendored_frameworks": "JetBeepFramework.framework"
    }
}

Pin It on Pinterest

Share This