Nearby Connections
Stay organized with collections
Save and categorize content based on your preferences.
The Nearby Connections API allows apps to
discover, connect to, and exchange data with nearby devices in real-time,
regardless of network connectivity. It uses Bluetooth, Wi-Fi, and other
technologies, and is designed to hide the complexity of these technologies
so your app can focus on discovering and interacting with nearby devices.
You should choose the Nearby Connections API for your app when:
-
You want to discover nearby devices without requiring Internet connectivity
and incurring the cost of a network round-trip on each operation.
You want to stream content or transmit arbitrary payloads or files between
nearby devices.
You want to use the latest peer-to-peer technologies such as
Wi-Fi Aware
when available.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-03-14 UTC."],[[["The Nearby Connections API enables real-time data exchange between devices, regardless of internet access, using Bluetooth, Wi-Fi, and other technologies."],["This API simplifies device discovery and interaction by abstracting away underlying technology complexities."],["Choose this API for scenarios requiring offline device discovery, content streaming, or leveraging peer-to-peer technologies like Wi-Fi Aware."]]],[]]