Questions tagged [google-nearby]

Covers both Nearby APIs from Google. Messages is a publish-subscribe API for co-present iOS and Android devices to discover and communicate with each other, as well as beacons. Connections is a low-latency networking API for Android, powering use-cases such as: local multiplayer, collaborative whiteboards, and multi-screen gaming.

Nearby is divided into three parts:

  1. Nearby Messages is a cross-platform publish-subscribe API for exchanging <100KB messages between co-present devices that may or may not be on the same network. Nearby Messages is also used to detect beacons and retrieve messages associated with them via the Google Proximity API

  2. Nearby Connections is a low-latency, socket-like API for sending of bi-directional data between Android devices. Under the hood, the API uses a combination of Bluetooth, BLE, and Wifi hotspots, leveraging the strengths of each while circumventing their respective weaknesses.

  3. Nearby Notifications is for contextual device, app, and website discovery.

For more info developers.google.com/nearby

Nearby Messages

The Nearby Messages API is a publish-subscribe API that lets you pass small binary payloads between internet-connected Android and iOS devices. The devices don't have to be on the same network, but they do have to be connected to the Internet.

Nearby uses a combination of Bluetooth, Bluetooth Low Energy, Wi-Fi and an ultrasonic modem to communicate a unique-in-time pairing code between devices. The server facilitates message exchange between devices that detect the same pairing code.

Examples: Pocket Casts share podcast subscriptions, Trello share board

Nearby Connections

The Nearby Connections API enables your app to easily discover other devices on a local network, connect, and exchange messages in real-time. You can use the Nearby Connections API to give your apps the following capabilities:

  • Collaborative whiteboard: Jot ideas down with nearby participants on a shared virtual whiteboard.
  • Local multiplayer gaming: Set up a multiplayer game and invite other users on the local network to join it. Your app can also allow a player to start an in-game mission when enough nearby participants join.
  • Multi-screen gaming: Use a phone or tablet as a game controller to play games displayed on a nearby large-screen Android device, such as Android TV. Your app can also enable players to see a customized game screen on their personal devices while all nearby participants see a shared common view on a large-screen Android device.

Example: Beach Buggy Racing phone as controller

Nearby Notifications

Nearby Notifications enables you to advertise HTTPS URLs, trigger app intents, and trigger app installs using beacons.

419 questions
5
votes
2 answers

Google nearby API background scan doesn´t work after application kill

I have kontakt.io beacon and I try to write application for background scanning with nearby API. I use this method to subscribe messages: SubscribeOptions options = new SubscribeOptions.Builder() // Finds messages attached to BLE…
5
votes
2 answers

Google Nearby Connection API: measure signal strength

Recently I found a seemingly cool way to communicate between devices using Google Nearby API. Skimming through the documentation didn't answer my question - is it possible to measure the connection signal strength in real time, or should I invent…
4
votes
1 answer

Android Detect Nearby Device (Covid-19 app)

The covid-19 app is capable of detecting who came into contact with who, how do they do it? I am trying to make something similar but I am unsure how they managed to get that information from the phones. I don't need the information to be private…
Ying Li
  • 2,500
  • 2
  • 13
  • 37
4
votes
1 answer

How is Google's nearby share implemented?

Google has just released the Nearby Share feature on Aug. I'm interested in its technical aspects, but I haven't found any articles on the technical details of Nearby Share. Are there any hints? I also noticed that Google already has the Nearby…
4
votes
1 answer

Nearby Connections API: Cannot access received file on Android 10

I am following this guide with the goal of transferring an image file which on the receiver side should be uploaded via a REST API. Android 10 blocks access to public folders like the 'Downloads' folder in which all received files from Nearby…
4
votes
1 answer

Google's nearby messages: not receiving any messages

I am trying out Google's nearby messages API, which seems to be easy to use, but it's for some reason not working as expected. I suspect that the problem is something trivial, but I have not been able to solve this. I double-checked that the…
José
  • 3,112
  • 1
  • 29
  • 42
4
votes
0 answers

Can Nearby message API be used on wear OS device?

I need to find the distance between my wear watch & android phone for that I planned to use Nearby API, I plan to use MessageListener class onDistanceChanged(Message message, Distance distance) method callback. Which returns distance object with…
Prashant
  • 4,474
  • 8
  • 34
  • 82
4
votes
1 answer

How can I force Google Nearby to use WiFi Direct?

I am developing a Disruption/Delay Tolerant Network (DTN) application which connects to Android devices using Android Nearby without authentication. From the Google Nearby docs: Under the hood, the API uses a combination of Bluetooth, BLE, and Wifi…
4
votes
1 answer

User engagement with Screen-Off events with Beacons

We want to incorporate beacon technology in our apps to create user engagement with screen-off events. In the present use case, we assume that the end-user will be in constant movement. So far, we have tested two different approaches. Kontakt…
4
votes
1 answer

Google Nearby notification API not showing new notifications

This is my first post here so please excuse my mistakes. I am trying to work with Nearby notification. I have added the beacon via "beacon tools" and from my dashboard have added nearby notification. As you can see in the picture, the new…
4
votes
1 answer

Google Nearby Publish in background for Android

The Google Nearby library allows publishing in the background for iOS (stated here) using BLE only. What is the reason for not allowing Android to have the same capability, and will it ever be supported?
4
votes
2 answers

Can I scan for iBeacons with Play Services 9.2?

In the 9.2 Release Notes of Google Play services I found the following: Nearby This release removes the requirement that clients use the Proximity Beacon API to manage their beacons. Nearby will now return parsed BLE advertisements directly,…
Florian Barth
  • 1,392
  • 12
  • 25
4
votes
1 answer

Google Nearby Notifications not working correctly

I'm trying to test the Google Nearby notifications on my Android phone's using iBeacon beacons. It seems to work only intermittently. When I get into the range of the Beacon, the notification does not seem to happen at all most of the times. I'll…
4
votes
2 answers

What is the ble scan duration in google nearby message api?

Does anyone know what the scan duration is for the google nearby messages api and also the time gap between each scan? Just out of curiosity as the document does not state anything about this.
Mr.Noob
  • 1,005
  • 3
  • 24
  • 58
4
votes
1 answer

Where to report API bugs to Google? (Google Nearby Messages API)

I really tried to find the best place to post my bug report to Google about the new Google Nearby Messages API but I didn't find anything what would be appropriate for this. We recently tried the new API and we were very satisfied with it, it works…
viplezer
  • 5,519
  • 1
  • 18
  • 25
1
2
3
27 28