📡 Native iOS / Android Bluetooth support for the Axway Titanium SDK
Ti.Bluetooth is an open source project to support Bluetooth / BLE in Appcelerator Titanium.
Unpack the module and place it inside the modules/
folder of your project.
Edit the modules section of your tiapp.xml
file to include this module:
<modules>
<module>ti.bluetooth</module>
</modules>
Add the following to your plist (only neccessary for iOS):
<plist>
<dict>
<key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
<string>bluetooth-peripheral</string>
</array>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Can we connect to Bluetooth devices?</string>
<!-- since iOS 13 -->
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Bluetooth device communication.</string>
</dict>
</plist>
An API documentation can be found in the documentation folder.
Please check example/app.js for an example. Use the documentation to see which API-features are available for each platform.
Apache 2.0
Code contributions are greatly appreciated, please submit a new pull request!