Skip to content

iOS 16 needs restoreStateIdentifier specification and has Error 103 issue #15

@Aldaniee

Description

@Aldaniee

I was working on updating the example project to run iOS 14 by adding the following to Runner/Info.plist

	<key>NSBonjourServices</key>
	<array>
		<string>_dartobservatory._tcp</string>
	</array>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>The app uses bluetooth to find, connect and transfer data between different devices</string>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>The app uses bluetooth to find, connect and transfer data between different devices</string>
    <key>UIBackgroundModes</key>
    <array>
    <string>bluetooth-central</string>
    </array>

And in ergblemanager.dart I added a restoreStateIdentifier.

  Future<void> init() async {
    await _manager.createClient(restoreStateIdentifier: "example-restore-state-identifier");
  }

Now the error I'm stuck on is the following:

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: BleError (Error code: 103, ATT error code: null, iOS error code: null, Android error code: null, reason: Reason not provided, internal message: null, device ID: null, service UUID: null, characteristic UUID: null, descriptor UUID: null)

Error 103

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions