Columbo
Columbo

Reputation: 6766

Does google nearby use WiFi P2P

Having read the announcement about google nearby 2.0 it's clear that WiFi connections are supported.

Nearby Connections uses WiFi, Bluetooth LE & Classic Bluetooth under the hood to discover and establish connections to nearby devices.

Or from the docs overview page

Under the hood, the API uses a combination of Bluetooth, BLE, and Wifi hotspots

What I'm not clear on is whether the WiFi support is exclusively when devices are connected to the same WiFi router, or whether the service will also use WiFi P2P (aka WiFi Direct) to establish connections when possible.

My experience using similar services on other platforms is that bluetooth connections can often be too slow for fast paced multiplayer games. My title already supports connections over WiFi routers, so ideally I'd want the service to add WiFi play in the absence of a router.

Upvotes: 3

Views: 1034

Answers (2)

Columbo
Columbo

Reputation: 6766

I think my question is answered in the I/O talk about Nearby Connections refresh (link).

We connect over bluetooth and start transferring data instantly, but in the background we also bring up a WiFi hotspot, and when that's ready we seamlessly transfer your connection from bluetooth to WiFi with absolutely no work required by the app developer

I'm reasonably confident from the context that the WiFi hotspot they're talking about is an Adhoc/Direct/P2P one (not sure of the correct terminology, but mobile to mobile WiFi of some sort) rather than a physical router.

Upvotes: 3

Colwin
Colwin

Reputation: 2685

The announcement says

At I/O this year, we spoke about a refresh to the Nearby Connections API that can provide high bandwidth, low latency, encrypted data transfers between nearby devices in a fully-offline P2P manner. Today we're announcing the availability of this API across all Android devices running Google Play services 11.0 and up.

Its fully offline and P2P so it looks like that there is no need for them to be connected to the same wifi router.

Upvotes: 1

Related Questions