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

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GNSMessageManager" - NearBy native development for iOS in flutter app

Just trying to build nearby natively in flutter app throws error Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GNSMessageManager", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture…
2
votes
1 answer

" is having trouble with Google Play Services. Please try again" while usiing Google NearBy Messages API

While using google NearBy Messages API I am getting error " is having trouble with Google Play Services. Please try again" Please guide me for this issue. Below is import for Google Messaging API implementation…
Jaffar Raza
  • 176
  • 3
  • 10
2
votes
0 answers

Google Nearby Connections api vs Nearby Messages api, benefits/limitations

I'm starting to think about a near by group chat application in Android with the following prerequisites: Have to be able to connect groups of users up to 250 without too much problems. The messages sent by the users will be public and all the…
Enrech
  • 21
  • 1
2
votes
0 answers

Question about Nearby Search Request from Google Places API

Image from table of pricing Google About the image, i'm using the NearbySearch, and not found the SKU's corresponding Result of request Nearby. Image of result of request I dont found the same fields in the PlaceDetails with Contact Data..…
2
votes
1 answer

Nearby Connections api not working on Android Pie

I have setup a test app for the Nearby Connections API from Google. It works perfectly on a Nexus 7 (2012) running Android 4.4.4 and a Sony Xperia XZ running Android 8. However, when I run the app on my Pixel 3A running Android 9 I get the following…
2
votes
0 answers

Google Nearby Connection: How to build up a Mesh Network (Android App)

I am currently writing my Bachelor Thesis and I have to develop an Android App which is building up a Bluetooth (BLE) Mesh Network (probably with Google Nearby Api?). The app should be used at small events for the staff. They can do things like…
2
votes
1 answer

Android Nearby subscribe failed: 2807 Missing microphone permission

I'm trying to integrate Android Nearby (https://developers.google.com/nearby/) into my app, however when I try to use nearby.subscribe it fails with a "Missing microphone permission" error. Since I could not find such a permission to add to…
2
votes
0 answers

Nearby Connections: unable to send payload to more than one device

I am unable to create a group chat where more than 2 (up to 15) nearby android users are able to join a chat room. startMeshNetwork() starts advertising the connection and discovering. This is called in onCreate(), as well as in the callback for a…
PrasannS
  • 21
  • 3
2
votes
1 answer

Google Nearby Connections set limit on connection distance like Nearby Messages

I'm working on an app at the moment for Android and iOS that uses Nearby Connections to communicate small amounts of data (like a string, character, or int) to other devices. I was originally looking into Nearby Messages but noticed that it needed…
dev-rb
  • 21
  • 1
  • 3
2
votes
0 answers

Issue with Google Nearby API after Master stops Advertising when Client connects

I read a lot of posts with 8007: STATUS_BLUETOOTH_ERROR at Google Nearby API, but didn't find the similar to my issue. I have 2 apps: Master. It starts Nearby Advertising on start. Sometime, it sends a short messages to clients (not more than 100…
Alexey Rogovoy
  • 691
  • 6
  • 13
2
votes
0 answers

Nearby Connections API - connecting N-to-1 often results in STATUS_BLUETOOTH_ERROR or slow connection

Recently my team has been working on developing an Android application to serve as a purpose similar to a teacher-attendance tool. The idea is a teacher device will advertise and around ~20 student devices will discover and connect with it. Right…
user313
  • 681
  • 1
  • 8
  • 21
2
votes
1 answer

Proximity Beacon API: Android and Nearby

My Android app is used for broadcasting of beacons, which are delivered to nearby devices with Nearby as notifications with URL links. Google annoucned they are going to close this service. They reccomend to use Proximity Beacons API After reading…
2
votes
0 answers

How to sort the closest beacon from onDistanceChanged method?

I have this beacon application detecting the distance from the nearby beacons using nearby message API. Since distance keeps changing I am trying to find a way to get the closest beacon. I am new to android development. I would really be thankful if…
2
votes
1 answer

Google API URL type search returns unexpected results

I'm using Google Maps API Nearby Search to find restaurants in an area. But one problem I've been having is that not all results of type=restaurant are returned. In the case of a particular point in Wellesley, MA, when I run…
fairground
  • 61
  • 1
  • 7
2
votes
1 answer

max connected Endpoints with Nearby-Connections

I created an app with the google-nearby connections API with the strategie cluster. On googles developer page they explained, that the cluster strategie is for an M-to-N topology. But it seems that the max client count is 6 endpoints. If a 7th…
zoss.li
  • 35
  • 2