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:
Any clue on how to solve this issue?
Thanks
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">
<config-file target="config.xml" parent="/*">
<preference name="bluetooth_restore_state" value="$BLUETOOTH_RESTORE_STATE"/>
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
Thanks for the help marschen! I tried what you said and my app now is asking the permission for bluetooth on iOS!I still cant list the paired devices but at least its not giving me the error about lack of permissions.
I also want to mention that in order to use the plugin as a resource its necessary to change the attribute 'id' on plugin.xml to: BluetoothSerial. That worked for me.
I am facing the same issue. I am also not able to get the list of paired and unpaired devices.
Can you please help me to know how you resolved this issue? It would be a great help.
Thanks in advance.
On iOS the discoverUnpaired is not supported. iOS uses Bluetooth Low Energy and the "ListPairedDevices" should discover devices without pairing.
Also, I've released version 4.0.0, which should fix the permissions errors on Android and iOS and be compatible with MABS 10 and MABS 11.