flutter_nearby_connections
1.1.2, released 3 years ago by smew.tech
Peer-to-peer connectivity and nearby device discovery for Android and iOS
What it does
Enables peer-to-peer communication and discovery of nearby devices on Android and iOS using Wi-Fi and Bluetooth. Supports advertising, browsing, streaming data, messages, and resource sharing.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need local peer-to-peer data sharing without internet access
- You are building an offline multiplayer game or local collaboration app for Android and iOS
Skip it when
- You need standard server-client cloud communication over the internet
- You are testing on Android emulators (real devices are required)
Strengths
- Cross-platform support for Android (Nearby Connections API / Wi-Fi P2P) and iOS (Multipeer Connectivity)
- Supports message-based data, streaming, and resource files over UDP
Weaknesses
- Android emulators are not supported; requires real devices for testing
- Requires platform-specific configuration and permissions on iOS
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires native configuration on iOS 14+ including NSBonjourServices, UIRequiresPersistentWiFi, and NSBluetoothAlwaysUsageDescription keys in Info.plist.
nearbyService.init(
serviceType: 'mp-connection',
strategy: Strategy.P2P_CLUSTER,
);Alternatives
Packages that do the same job and could replace flutter_nearby_connections.
- connectivity_plus_tizen
Tizen implementation of the connectivity_plus plugin for checking network status.
71Compare - simple_connection_checker
Check device internet connection and listen to status changes.
53Compare - platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - app_launcher
Launches an installed Android app by its package ID, falling back to Google Play if missing.
46Compare