Skip to content

Conversation

@swift-kim
Copy link
Member

@swift-kim swift-kim commented Apr 16, 2022

Adds support for ConnectivityResult.bluetooth.

Also reverts part of #352. The EventChannel instance must be preserved in memory during the plugin lifetime. See #134.

@github-actions github-actions bot added needs-publishing The package should be published after merge p: connectivity_plus labels Apr 16, 2022
case CONNECTION_TYPE_ETHERNET:
return ConnectionType::kEthernet;
case CONNECTION_TYPE_BT:
return ConnectionType::kBluetooth;
Copy link
Member Author

@swift-kim swift-kim Apr 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this function return ConnectionType::kBluetooth if the system reported network type is CONNECTION_TYPE_NET_PROXY? As far as I understand the proxy type means that the wearable device is using the bluetooth-connected phone's connection.

I just tested on my watch and found out that the device reports the current network type as CONNECTION_TYPE_ETHERNET when it's connected to a phone via bluetooth (even if the watch is connected to Wi-Fi simultaneously). I don't really understand why the Connection API works in this way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relax! 😄
Perhaps it is a gimmick that was entered because of a some scenario in the past.

Copy link
Member

@bwikbs bwikbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@swift-kim swift-kim merged commit 04d853a into flutter-tizen:master Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-publishing The package should be published after merge p: connectivity_plus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants