Almost there!
Everything is now ready to be inserted into the mobile app. The dependancy and configurations can simply be copied and triggered from the mobile check-in process.
Dependency
The BAGTAG EBT Framework is available through CocoaPods . To install it, simply add the following line to your Podfile:pod 'ebt-framework'And then run
pod install
Permissions
Add the following permissions to the apps info.plist:NSBluetoothAlwaysUsageDescription
Import
Import the framework in your view controllerimport ebt_framework
Customisations
Copy your work from the example app: Customise, Localisation and Baggage check-inInstallation
The framework is available through Maven and can be included in your project using gradle.
First make sure your root-level `build.gradle` file has the following repository included:
allprojects { repositories { jcenter() } }
Then add the dependency to your app-level `build.gradle` file:
dependencies { implementation "com.bagtag.ebt-framework:ebt-framework:1.+" }
Then sync your gradle dependencies to download the framework.
Because the framework uses databinding you should add the following to your app-level `build.gradle`:
apply plugin: 'kotlin-kapt'
And add the following to your `android{}` tag:
dataBinding { enabled = true }
Permissions
The framework needs access to the location permission in order to use the bluetooth scan for discovering EBT’s. Also the internet permission is required for connection with the API. You need to add the following permissions to your `AndroidManifest.xml`:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.INTERNET" /> <application> ... </application> </manifest>
Success! What's next?
Any questions about integration? Reach out to integration@bagtag.com