Skip to content
pubscout

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

$ flutter pub add flutter_nearby_connections
Source repository

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.