-
Notifications
You must be signed in to change notification settings - Fork 356
Description
Describe the bug
Subsrcibing to specific characteristic crashes ios app immediately. Android one works well with the same code.
To Reproduce
Steps to reproduce the behavior:
-
use sample app
-
change body of the function Future discoverServices(String deviceId) async
to something like
`final characteristic = QualifiedCharacteristic(serviceId: Uuid.parse('4c0719b0-c810-492b-87b1-63c6c3fd584f'), characteristicId: Uuid.parse('4c0719b3-c810-492b-87b1-63c6c3fd584f'), deviceId: deviceId);_ble.subscribeToCharacteristic(characteristic).listen((data) {
print(data.toString());
}, onError: (dynamic error) {
print(error);
});` -
launch the app
-
tap search button
-
select device
-
tap connect and wait until status changes
-
tap Discover services
-
app immediately crashes - tries to subsrcibe to characteristic
Note: original code for discovering services works properly on both ios and android, so service and characteristics are discovered
.
Expected behavior
Should receive data printed on console - Android works properly
Smartphone / tablet
- Device:iPhone XS
- OS: iOS 14
- Package version: 2.6.1+1