Flutter Nearby Messages API enables cross-platform proximity-based messaging on Android and iOS using Google's Nearby Messages API. It allows devices to discover and exchange small messages with nearby devices without requiring internet connectivity, ideal for local interactions like peer-to-peer sharing, event check-ins, or location-based alerts. The package provides a simple interface to publish and subscribe to messages, leveraging Bluetooth and Wi-Fi for discovery. It is designed for developers seeking seamless, low-latency communication between nearby devices in offline scenarios.
Use cases
- Local device discovery
- Peer-to-peer file sharing
- Event check-in systems
- Offline multiplayer games
- Proximity-based notifications
Key features
- Cross-platform support (Android & iOS)
- Bluetooth and Wi-Fi based discovery
- Low-latency message exchange
- Simple publish/subscribe API
- Offline operation
Suitable for
- Developers building offline interaction apps
- Teams creating proximity-based services
- Apps needing real-time local communication
Considerations
- Requires user permission for location and Bluetooth
- Limited message size (100 bytes)
- Depends on Google Play Services (Android)
- iOS requires background mode configuration
- Not suitable for large data transfers