Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: upgraded flutter_blue_plus to 1.35.0 from 1.34.5 now im getting UnimplementedError #1110

Closed
1 task done
DarkTemplar03 opened this issue Jan 19, 2025 · 2 comments
Closed
1 task done
Labels
help Questions, help, observations, or possible bugs

Comments

@DarkTemplar03
Copy link

Requirements

  • I've looked at the README 'Common Problems' section

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.35.0

Flutter Version

3.27.2

What OS?

macOS, iOS

OS Version

macOS 14.7.1, Xcode 16.1, iOS 17.6.1

Bluetooth Module

Arduino HC-08

What is your problem?

I upgraded flutter_blue_plus to 1.35.0 from 1.34.5 (using flutter pub upgrade) now everytime i try to run my app it throws an UnimplementedError from whatever the first FlutterBluePlus function is called originally that was setLogLevel() however after i commented that out isBluetoothSupported() threw the same error.

Image Image Image

when i looked into the example app i noticed it was running flutter_blue_plus 1.35.1 however it was running successfully, also whenever i rolled back to 1.34.5 my app is running successfully.

Logs

UnimplementedError (UnimplementedError)
@DarkTemplar03 DarkTemplar03 added the help Questions, help, observations, or possible bugs label Jan 19, 2025
@tnc1997
Copy link
Collaborator

tnc1997 commented Jan 21, 2025

Hi @DarkTemplar03, thank you very much for opening this issue.

Bonding is only supported on Android and Linux, and will throw an UnimplementedError on other platforms.

https://github.com/chipweinberger/flutter_blue_plus#compatibility

In the next version of flutter_blue_plus a sensible default value will be returned instead of throwing an error.

when i looked into the example app i noticed it was running flutter_blue_plus 1.35.1 however it was running successfully

The example app should run successfully because it checks the platform before calling platform specific methods.

@chipweinberger
Copy link
Owner

update to 1.35.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions, help, observations, or possible bugs
Projects
None yet
Development

No branches or pull requests

3 participants