network_info_plus_watchos 0.0.1 copy "network_info_plus_watchos: ^0.0.1" to clipboard
network_info_plus_watchos: ^0.0.1 copied to clipboard

watchOS implementation of the network_info_plus plugin, exposing Wi-Fi IPv4 and IPv6 addresses via getifaddrs and dart:ffi (SSID is unavailable on watchOS).

network_info_plus_watchos #

The watchOS implementation of network_info_plus.

Interface addresses are read with getifaddrs over dart:ffi.

Scaffolded by flutter-watchos plugin port from network_info_plus, then implemented and verified by hand.

Usage #

This is a federated plugin implementation. Apps that already depend on network_info_plus and target watchOS only need to add this package alongside it:

dependencies:
  network_info_plus: ^<latest>
  network_info_plus_watchos: ^0.0.1

The plugin registers automatically via Flutter's federated registry — no explicit imports required from app code.

Behaviour on watchOS #

Getter watchOS
getWifiIP / getWifiIPv6 supported (active interface, preferring en0)
getWifiSubmask / getWifiBroadcast supported
getWifiName (SSID) / getWifiBSSID null — watchOS has no CaptiveNetwork / NEHotspotNetwork
getWifiGatewayIP unimplemented (no watchOS routing-table API)

Status #

Platform Implemented
Apple Watch (watchos) yes (addressing only)
Watch simulator (watchsimulator) yes

Verified end-to-end on the watch simulator (example/integration_test).

License #

The FlutterWatch Authors under a BSD-3-Clause license. See LICENSE for the full text.

0
likes
140
points
101
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the network_info_plus plugin, exposing Wi-Fi IPv4 and IPv6 addresses via getifaddrs and dart:ffi (SSID is unavailable on watchOS).

Homepage
Repository (GitHub)
View/report issues

Topics

#watchos #ffi #network

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, network_info_plus_platform_interface

More

Packages that depend on network_info_plus_watchos

Packages that implement network_info_plus_watchos