Prerequisites and Project Configuration Settings |
To run this application, ensure that you have the following prerequisites:
Microsoft Visual Studio 2022 version 17.8 or newer.
.NET SDK 8.
For iOS execution, Xcode 15 or a later version is necessary.
Open the AndroidManifest.xml file in your Android project.
Add the following permissions if your app requires Bluetooth Discovery and requires runtime permission management based on the Android version. For devices with Android versions below 12, acquiring the ACCESS_COARSE_LOCATION permission is necessary. Conversely, for devices running Android 12 and above, both the BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions are required.:
<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" /> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
Add the following permissions if your app requires Network Discovery:
<uses-permission android:name="android.permission.INTERNET" />
Open the Info.plist file in your iOS project. Add the following permissions for Bluetooth Discovery:
<key>NSBluetoothAlwaysUsageDescription</key> <string>please-always-allow-bluetooth-usage !</string> <key>NSBluetoothPeripheralUsageDescription</key> <string>please-always-allow-bluetooth-usage !</string> <key>UIBackgroundModes</key> <array> <string>external-accessory</string> </array> <key>UISupportedExternalAccessoryProtocols</key> <array> <string>com.zebra.rawport</string> </array>
Add the following to Entitlement.plist for Network Multicast:
<key>com.apple.developer.networking.multicast</key> <true/>