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
0
votes
2 answers

How to use Google Nearby Messages API in a cordova app

Is it possible to use Google's Nearby Messages API (https://developers.google.com/nearby/messages/overview) in a Cordova app? And if yes then how?
svs
  • 2,425
  • 1
  • 14
  • 10
0
votes
1 answer

NearbyAPI iOS doesn't detect beacon already in range

I've set up Google Nearby API for my objective-c project to scan for beacons. The app detects the beacons fine when moving into the range of a beacon but it does't work if I start the app when I'm already in range. I have to walk away from the…
0
votes
2 answers

Android BLE scan interval for Nearby Notifications?

What is the scan interval that is currently being used by Android for the Nearby Notifications feature (app-less)? On a parallel note, does the stability value for the beacon have anything to do with this interval? How/If is the Nearby Notification…
0
votes
1 answer

Stale Google Nearby notifications

I had a Beacon registered to Google Nearby and then created a new notification. I got these notifications just fine. Later, I deleted the old notification and created a newer notification for the same beacon. However, I still keep getting the same…
0
votes
1 answer

Send eddystone uid frame with hcitool

I want to send Eddystone UID frames as well as iBeacons frames and If I understand correctly I can do both with just hcitool. I am able to send the frame using iBeacon from my Debian and it displays properly but how could I send it with Eddystone…
AlWeird
  • 85
  • 5
0
votes
1 answer

Nearby Messages API not getting any Attachments

EDIT: Already solved, was a problem with beacons. I'm having some troubles with Google Nearby Message API. I did as it was said on their page (https://developers.google.com/nearby/messages/android/get-beacon-messages) but it doesn't get any…
0
votes
1 answer

Eddystone + Google Beacon Platform

I am following the video from the google keynote (https://www.youtube.com/watch?v=3nYyApSiSLQ). I also have the same beacon in the demo (iBKS 105) and managed to provision it to serve UID. By using Google's Beacon Tools, I am able to detect and…
user5283754
0
votes
1 answer

Google Nearby API on iOS background scanning

I've got the Nearby API set up in my Swift app and I can receive messages when the app is in the foreground. Following the instructions in the docs I try to include params.allowInBackground = true in the appropriate place but I get an error: Value…
James
  • 1,292
  • 1
  • 14
  • 29
0
votes
0 answers

In Some Android Device Wifi turn off Automatically during using Google nearby API

Documentation Regarding Google-Nearby is available here https://developers.google.com/nearby/messages/overview The Sample Program is given here https://github.com/googlesamples/android-nearby/tree/master/messages/NearbyDevices When I run this…
0
votes
2 answers

How to detect when subscriber Found/Lost published Message at publisher side?

I am using google's NearBy Messages API to publish some messages from server(An android device here) and subscribe for those messages from client(Another android device) . In this I want to maintain log timings of client at server side when client…
shobhan
  • 1,460
  • 2
  • 14
  • 28
0
votes
1 answer

Android Nearby Messages API Publish 'Expected BEGIN_OBJECT but was STRING'

I am trying to use the nearby sample and follow this link: https://developers.google.com/nearby/messages/android/pub-sub and i want to subscribe and publish a small text. so i added: private Message mActiveMessage; private void publish(String…
Yanay Hollander
  • 327
  • 1
  • 5
  • 19
0
votes
1 answer

Google Nest subscriptionWithMessageFoundHandler fires once?

I am trying to code around the fact that the messageLostHandler doesn't fire for many minutes after a device is out of range using Audio (or Earshot for Android). I was hoping that every few secs a message would be received from another device. It…
0
votes
1 answer

Google Nearby for Swift - How discovery Audio only?

I am using Google's Nearby and trying to use discoveryMediums Audio (only) without using BLE or Classic BT. The reason is because I want discovery to happen in a room and not bleed through walls. Currently I have this code. If I turn off BT on an…
0
votes
1 answer

Is it mandatory to be in same wifi network to communicate using NearBy Api?

I'm using google's NearBy API to enable communication between android devices using BLE. I was followed these steps. Also used these samples. Those samples are working well but the problem here is WiFi(staying in same network) connection is…
0
votes
1 answer

TOO_MANY_PENDING_INTENT error when subscribing to google nearby messages API

I'm working on an android nearby application, and I'm trying to subscribe() to nearby messages via the nearby messages API of Google, I managed to connect to the googleApiClient but when subscribing, I get a TOO_MANY_PENDING_INTENT error. here is…