-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bluetooth State "Unknown" after Navigator.pop #30
Comments
@KatayR BluetoothState will update only if there is any change in BluetoothRaio ( on/off ) etc WinBle.getBluetoothState().then((BleState state){
// Here get BleState
});
WinBle.bleState.listen((BleState state) {
// Set listener for further updates
}); |
Somehow it doesnt get completed. Print state in here never prints:
|
@KatayR is it completing for the first time, or it never worked for you ? |
Never works |
@KatayR can you please try in example app |
It's already almost completely same as example app tho. I only renamed your MyApp widget in main.dart to ConnectionSetupPage widget and put a login page before it. So main.dart > LoginPage > ConnectionSetupPage(your main.dart codes and a logout button) |
@KatayR ok its hard to tell why your app is not getting bluetooth state, but you can try to toggle bluetooth on/off after running app to see if bleState listener getting any updates |
My app has a login page. After the login, I push your example connection page for now.
When I login for the first time, everything works fine. But if I logout and then use Navigator.pop or push, login again and come back to connection page, then bluetooth state gets stuck at "Unknown". Only fix is to restart the app.
Dispose etc doesnt work
The text was updated successfully, but these errors were encountered: