A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/nearby/connections/overview below:

Overview | Nearby Connections | Google for Developers

Skip to main content Overview

Stay organized with collections Save and categorize content based on your preferences.

Nearby Connections is a peer-to-peer networking API that allows apps to easily discover, connect to, and exchange data with nearby devices in real-time, regardless of network connectivity.

Some example use cases:

Introduction

Nearby Connections enables advertising, discovery, and connections between nearby devices in a fully-offline peer-to-peer manner. Connections between devices are high-bandwidth, low-latency, and fully encrypted to enable fast, secure data transfers.

A primary goal of this API is to provide a platform that is simple, reliable, and performant. Under the hood, the API uses a combination of Bluetooth, BLE, and Wi-Fi technologies, leveraging the strengths of each while circumventing their respective weaknesses. This effectively abstracts the vagaries of Bluetooth and Wi-Fi across a range of platforms and OS versions, allowing developers to focus on the features that matter to their users.

API overview

Usage of the API falls into two phases: pre-connection, and post-connection.

In the pre-connection phase, Advertisers advertise themselves, while Discoverers discover nearby Advertisers and send connection requests. A connection request from a Discoverer to an Advertiser initiates a symmetric authentication flow that results in both sides independently accepting (or rejecting) the connection request.

After a connection request is accepted by both sides, the connection is considered to be established and the devices enter the post-connection phase, during which both sides can exchange data.

Advertising and discovery

Advertisers will become visible to other discovers and discoverers will be notified when a new advertiser is found or has been lost.

Establishing connections

When a discoverer wishes to connect to a nearby advertiser, the discoverer can request a connection.

Both sides will be notified of the connection initiation process and both will have the opportunity to accept or reject the connection.

Once both sides have responded, each will be notified of the result. If both sides accepted the connection, the connection is considered established, and data transference can then begin.

Exchanging data

After a connection is established, further API usage is symmetrical, so there’s no longer a distinction between Advertiser and Discoverer.

Both sides can now exchange data. There are 3 types of supported Payloads:

Receivers will be notified of new incoming data and any progress updates, cancellations or failures.

The connections established are full-duplex, which means that advertisers and discoverers can simultaneously send and receive data.

Data Collection

When using the Google Play services Nearby SDK, usage analytics are collected to improve the experience.

End users can allow or deny this collection by navigating to Settings > Google > Usage & diagnostics.

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 2023-04-23 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 2023-04-23 UTC."],[[["Nearby Connections is a peer-to-peer networking API enabling apps to discover, connect, and exchange data with nearby devices in real-time, even without internet access."],["It leverages Bluetooth, BLE, and Wi-Fi for high-bandwidth, low-latency, and encrypted communication, abstracting away the complexities of these technologies."],["The API facilitates advertising, discovery, and connection establishment between devices, followed by data exchange using bytes, files, or streams."],["Usage analytics, including performance metrics and device information, are collected to enhance the API's performance but can be controlled by users in their device settings."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3