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

Nearby Connections API and WiFi Hotspot

Our app uses Google Nearby Connections API and we have a problem when there is no WiFi router available. When a device creates a WiFi hotspot others can connect to it, but that device itself is not a part of that network. Is there any workaround for…
Tigran
  • 3
  • 2
0
votes
1 answer

Strategy to handle Nearby Messages API - Android

I am currently working on an messaging application for Android that communicates with other devices using Nearby Messages API. Since this is the first time that I work with this API, I would like to know if there is a pattern or strategy to handle…
horro
  • 1,262
  • 3
  • 20
  • 37
0
votes
0 answers

Nearby Messages API permission declaration in manifest?

I've followed this https://developers.google.com/nearby/messages/overview and have setup the Nearby Messages implementation into one of my apps. I change the payload, depending on certain actions within the app by changing the Message…
Arnab Saha
  • 511
  • 6
  • 15
0
votes
1 answer

Indexing ndb.GeoPt Property in Google App Engine

I want to query for "nearby" datastore objects in GAE. To achieve, this I was planning to index ndb.GeoPt property in datastore entities. And Whenever a query is made for nearby objects, I will simply find four corner points of a square :…
The Coder
  • 121
  • 1
  • 7
0
votes
1 answer

nearby places swift 2 error

I work on a ios application that requires to use nearby places api from google. It worked very well with swift but now , when i updated my xcode to xcode 7 and it changed from swift to swift 2 it doesn't work anymore. I am stuck with this , any help…
Vlad Mihai
  • 31
  • 8
0
votes
2 answers

Nearby message api error - Nearby.Messages is not enabled for this app: packageName

I am trying to use the nearby message api to get message from a eddystone beacon. I have followed the following documentation : [https://developers.google.com/nearby/messages/overview?hl=en][1] I am using the SHA1 from the default debug keystore.…
rahul.ramanujam
  • 5,608
  • 7
  • 34
  • 56
0
votes
2 answers

Nearby Messages repeated on reconnecting

I've written a small test application which works as a simple chat room using Nearby.MESSAGES_API. When I subscribe I find that I receive a number of older Messages in my MessageListener (in onFound). If I disconnect and then reconnect (eg. switch…
juliusspencer
  • 3,008
  • 3
  • 26
  • 30
0
votes
1 answer

Android - Ways to send data to a nearby device without installing an app on the nearby devices

I'm trying to send data (like a notification or something) to a nearby device without an internet connection. The restriction is that the device I'm trying to send data to does not have my app installed. I've considered using Bluetooth, but the…
Cameron
  • 756
  • 6
  • 16
-1
votes
1 answer

Android Development close range data exchange

So i have been looking into close range data exchange. Trying to exchange some strings and variables between close ranged devices. I have been looking into Google Nearby Connections But that doesnt really seem optimal since i need both devies to…
-1
votes
1 answer

Google Nearby Places Api is returning INVALID_REQUEST

I am fairly new to Google Maps & Stuff. I am making my Final Yer Project for the degree and facing this issue. I am trying to get the response from the Places Api, I have followed the Official Docs to Construct the URL, but after all the struggle, I…
-1
votes
1 answer

How to get nearby ATMs from current location using Angular 7 code?

I want to display nearby ATM from current location using Angular 7. Please help to get the codes or demo.
N.k. Arul
  • 23
  • 4
-1
votes
1 answer

Open google nearby Settings in android through Code

how can I open google nearby Settings in android through code?
Ashish Choudhary
  • 444
  • 1
  • 4
  • 11
-1
votes
1 answer

Can we get high Bandwidth in Cluster strategy as we get in Star strategy of google nearby connections ?

We used nearby connection and tried both star and cluster strategy and noticed that in star strategy bandwidth is very high as compared to the bandwidth in cluster strategy. The network structure which cluster strategy uses, best matches our…
-1
votes
2 answers

NullPointerException: thrown in OnMapReady method

Started running my google maps project and encountered this NullPointerException error in the Logcat -> java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)'…
-1
votes
1 answer

Google nearby not working on any device

We have had google nearby for 4 months with over 20 beacons sending out different messages in different locations but in all that time no one has ever seen a notification and we have never had a click through we can see the beacons being picked up…
1 2 3
27
28