iOS Question Bluetooth error ?

chardenal

Member
Licensed User
Hello,

I use Bluetooth BLE for my APP (iBLE 2.01).

It works fine with iOS 12 (iphone 5 and iPad), but I have this error with iOS 13.3 (iPhone X)


It crash after this line :

B4X:
Application_Start

Application_Active
Page1_Appear
SignalHandler 6
Error occurred on line: 3874 (ChoixSession)
Signal - 6
Stack Trace: (
    "0   ALFANO 6             SignalHandler + 120",
    "1   libsystem_platform.dylib            0x000000019380c884 70F43BD5-061B-3579-8B83-69771FB61812 + 34948",
    "2   libsystem_kernel.dylib              0x00000001938f8f24 3CB935CB-AC30-3140-AD55-F25F09B59A48 + 163620",
    "3   libsystem_kernel.dylib              0x00000001938f8f54 3CB935CB-AC30-3140-AD55-F25F09B59A48 + 163668",
    "4   TCC                  B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 7368",
    "5   TCC                  B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 7176",
    "6   TCC                  B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 23336",
    "7   libxpc.dylib         D263F3EB-967C-33B9-AF70-D48644FA8411 + 97412",
    "8   libxpc.dylib         D263F3EB-967C-33B9-AF70-D48644FA8411 + 48920",
    "9   libdispatch.dylib    A3849F96-1C9F-36C5-A15F-70C566F14CFF + 377348"
)

B4X:
    Bluetooth.Initialize("Bluetooth")
I have this in the "main"

B4X:
    #PlistExtra: <key>NSBluetoothPeripheralUsageDescription</key><string>Bluetooth used to connect with CGmodule</string>
    #PlistExtra: <key>NSBluetoothAlwaysUsageDescription</key><string>Bluetooth used to connect with CGmodule</string>

Can you help me please?

Thanks
 

chardenal

Member
Licensed User
Hello Erel,



I have the same problem with your exemple, but I think I have found the solution.



The problem was :



B4X:
#PlistExtra: <key>NSBluetoothAlwaysUsageDescription</key><string>Bluetooth used to connect with Alfano</string>


I need this line code for iOS 13, but I need uninstall the app in first, and install again then to valid this line. It work fine now.



Can you confim please?

Thanks
 
Top