flutter_watch_os_connectivity
1.0.0, released 4 years ago by sstonn.xyz
Flutter plugin to communicate with WatchOS apps via Apple Watch Connectivity.
What it does
Provides a wrapper around the Watch Connectivity framework allowing Flutter iOS apps to send messages, application context, user info, and files to a paired WatchOS app. It also exposes activation state and device reachability information.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need bidirectional communication between an iOS Flutter app and its WatchOS companion.
- You want to transfer small messages, app context, user data, or files to a watch.
- You need to monitor watch reachability and activation state.
Skip it when
- Your app targets Android or other platforms only.
- You require cross‑platform watch support (e.g., Wear OS) without separate implementations.
Strengths
- Uses native Watch Connectivity for reliable Apple ecosystem communication
- Rich feature set: messages, context, user info, file transfer
- Provides streams for activation and reachability changes
Weaknesses
- iOS‑only; no support for Android or web
- Requires a WatchOS companion app with matching bundle ID
- Limited documentation beyond README
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add the plugin to pubspec, ensure a WatchOS companion app exists, configure bundle ID (YOUR_IOS_BUNDLE_ID.watchkitapp) and enable Watch Connectivity in Xcode.
import 'package:flutter_watch_os_connectivity/flutter_watch_os_connectivity.dart';
final watch = FlutterWatchOsConnectivity();
await watch.activate();
watch.activationStateStream.listen((state) => print('Activation: $state'));
watch.sendMessage({'key':'value'}).then((reply)=>print('Reply: $reply'));Alternatives
Packages that do the same job and could replace flutter_watch_os_connectivity.
- connectivity_plus
Provides generic network connectivity status across platforms, but not watch‑specific communication.
97Compare