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
1 answer

Nearby Connections 2.0: Advertiser restarts, but Discoverer connects using old Advertiser id

I caught an interesting result Advertiser advertised its endpoint id 'wjys' Discoverer requested connection to 'wjys' Advertiser restarted (stopAllEndpoints, disconnect from GoogleApiClient) Advertiser advertised its new endpoint id…
Rapunzel Van Winkle
  • 5,380
  • 6
  • 31
  • 48
0
votes
2 answers

How To Send And Receive An Object In Nearby Connections Api

Google In Documentations Saying: you can exchange data by sending and receiving Payload objects. A Payload can represent a simple byte array, such as a short text message; a file, such as a photo or video; or a stream, such as the audio stream from…
Mohsen
  • 85
  • 1
  • 11
0
votes
1 answer

Nearby Connections 2.0 is unable to connect to peers

I thought I had it correct for a Strategy.P2P_CLUSTER connection, but instead I get: D/Meshy: onEndpointFound (we want to connect to someone!) (endpointId=CL36, serviceId=meshy.SERVICE_ID, endpointName=365589) W/Meshy: acceptConnection failed with…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42
0
votes
1 answer

Google Nearby notification not shows when i near to beacone

I was just trying to create google near by notification for my beacons but Notification still visible through the nearby app. But it's not shows automatically when I reach near to beacon. I create a beacon app in google developer console and…
0
votes
0 answers

Can I add play.google.com music links to the beacon dashboard using app intent?

I have been trying to add the following as a URL and an app intent, but I cant make it broadcast. https://play.google.com/store/music/album/Jennifer_Myles_In_Due_Season?id=Bcd7upiwxohcs3sskrj73y4mnlm I have read that play.google.com will not…
0
votes
1 answer

GoogleApiClient - UNKNOWN_ERROR_CODE(8050)

I'm calling GoogleApiClient into a Service. The first time the service is launched, onConnected() is called. Then the service is stopped via stopSelf() and restarted so mGoogleApiClient (null) is build again: mGoogleApiClient = new…
HKoncept
  • 153
  • 2
  • 8
0
votes
1 answer

Google Nearby is no longer showing nearby notifications

Google Play Services/Nearby is no longer showing any nearby notifications, I can see them in the nearby app on my Android smartphone, but not in the notification drop-down bar. I have not muted anything, my google play services notifications are on…
helenclarko
  • 269
  • 1
  • 12
0
votes
1 answer

Beacons Notifications not showing after dismissed

Im using Nearby and Eddystone URL to broadcast notifications to Chrome on mobile. After provisioning and setting up of the beacons, it works great. The notifications shows up in the notification drawer. However, if it was dismissed by accident or…
oninross
  • 989
  • 6
  • 23
0
votes
1 answer

Hello Beacons detecting virtual beacon but not able to make continous beacon scans in foreground

I have followed the ten steps outlined in the Hello Beacon app tutorial at https://codelabs.developers.google.com/codelabs/hello-beacons/. when i turn on the app for a few seconds (maybe 10sec) it tries to find beacons and lists the beacons found…
user rk
  • 376
  • 5
  • 13
0
votes
1 answer

Does Google Nearby Connections support non-Android endpoints?

I'd like to do fun things with Android Nearby Connections 2.0, but I wasn't clear from the announcement which of the technologies (messaging, file transfer, socket-like comms, etc) can have a non-android endpoint. For example, if I want my android…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42
0
votes
1 answer

Is Google Nearby API free to use? If so, what if you exceed 8,640,000 daily limit?

I am building a google application using google nearby and there is a possibility that I might go live on production with it. Since I couldn't find support email for google nearby, does anyone know if Google Nearby is free to use? It looks like the…
gorkhali1
  • 21
  • 1
0
votes
0 answers

Having issues with an iOS react native native module using a CocoaPod

I'm creating a native module wrapper for the Google Nearby Messsages API. I've installed the api using these instructions https://developers.google.com/nearby/messages/ios/get-started I then published the project to npm and created an example…
0
votes
2 answers

nearby notification and turning Bluetooth OFF-ON

After getting a Nearby notification if I swipe away the notification, in order to get the same notification again I need to force the mobile phone to scan for the beacons again. Can turning OFF the Bluetooth and turning it ON again will work ? Does…
0
votes
1 answer

Eddystone (which beacon is interacting?)

From multiple beacons placed at a location, how can we know from which beacon the user accessed the URL ? I am using Nearby notification. Minor value of beacon would help ? If yes then how ? Or pls suggest an alternative solution. Thanks.
0
votes
2 answers

How to calculate nearest restaurant, but my code is showing all nearby restaurants

My code is searching for nearby restaurants and working well by showing all nearest restaurants on Map, But i want to get very near restaurant, i want to show only 1 restaurant in TextView, i don't know how i can calculate shortest path for that.…
Ali
  • 11
  • 3