[Bluetooth Serial Plugin] Should the demo work on IOS?
Question
bluetooth-serial-plugin
Mobile icon
Forge component by Guillaume Henriques
Application Type
Mobile

Hi,


I am trying the Demo, it works fine on Android, but it does not work in IOS, should it?


The application starts loading aind imediatelly closes itself.


I get the folowing errors in Service Center:


A fatal error has occurred. Please contact OutSystems support: SIGABRT signal



Failed to load cache manifest file: file /var/mobile/Containers/Data/Application/72BAEFA7-9463-4A34-AD6E-808F2CB12A19/Library/Application Support/OSNativeCache/OSCacheManifest.plist not found. The file was never created.


Any clue on how to solve this issue?


Thanks

Champion

Hello Cipriano 

In the OutSystems the Native Applications could be used in both Android and iOS. I have never tried this component demo but IMO, it should work in iOS. 

Have you generated the iOS App for this? 

If it is not working then issue could be related to the iOS Security and The Permissions. Unfortunately, I can't test this with iPhone :(  

Has anyone found a solution to this problem? I am getting the same error on IOS.

Hello,

Because this plugin uses Bluetooth, but does not ask the IOS system to obtain authorization. So it doesn't work. 

If you want to fix it:


1. Download the plugin source code at https://github.com/don/BluetoothSerial 

2. Open “Plugin.xml” add below info setting and Zip it .

        <preference name="BLUETOOTH_USAGE_DESCRIPTION" default=" " />

        <config-file target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">

            <string>$BLUETOOTH_USAGE_DESCRIPTION</string>

        </config-file>

        <config-file target="*-Info.plist" parent="NSBluetoothAlwaysUsageDescription">

            <string>$BLUETOOTH_USAGE_DESCRIPTION</string>

        </config-file>

        <config-file target="config.xml" parent="/*">

            <preference name="bluetooth_restore_state" value="$BLUETOOTH_RESTORE_STATE"/>

        </config-file>

3. Open Bluetooth Serial Plugin, Follow these steps:


 {

    "resource": "BluetoothSerial.zip",

    "plugin": {

        "resource": "BluetoothSerial"

    }

}

4. Publish the change and refresh dependent.

5. Generate the demo application for IOS.


Thank you

Mars

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.