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

Sending multiple messages/Strings in Nearby Messages API

I'm trying to publish multiple strings in one activity (tracks, albums, artists) using the Nearby Messages API and subscribe to them and have them appear, in Textview, in another activity. When I run it, only one string ever shows up in the…
Mark
  • 11
  • 4
0
votes
1 answer

messageLostHandler not called on Google Nearby iOS when out of range

I don't really understand when messageLostHandler is triggered on the subscriptionWithMessageFoundHandler method. This is my code: func suscribeToNearbyDevices(myUserId: String){ subscription = messageMgr?.subscription(messageFoundHandler: {…
Julio_oa
  • 570
  • 6
  • 15
0
votes
1 answer

Google Nearby Messages Crashed: AudioRecorderCallbackQueue on deallocation

I'm using Swift to use Google Nearby Messages library. I followed the sample code to setup the library. I'm using both bluetooth and microphone to test the function. I dealloc the publication/subscription in viewDidDisappear(). Basically it's two…
0
votes
1 answer

Unable to use Google Nearby

Recently I started getting error messages when using NearbyMessages on my Nexus 5 running 6.0.1 and am unable to detect any other devices, and no device and detect this one, even though it was previously working (last week). E/NearbyMessages:…
0
votes
0 answers

What to use to get Nearby Places, server key or API key

I am working with google map, nearby places, distance matrix. I was trying to get an API key using this Google Recommended Process. I have added debug key and release key with it according to documentation. But only map is working. Nearby place is…
0
votes
2 answers

Nearby Messages API namespace reserved

I am trying to implement beacon scanning with Firebase, Nearby Messages and iBeacons. I have followed Googles docs on how to set up the beacons and started a service which handles Messages. But the only response I get is: Message received:…
hboy
  • 301
  • 3
  • 17
0
votes
1 answer

How to extract Eddystone UUID(Namspace and Instance ID) from 'Message'

I have subscribed for BLE device using Nearby.Messages.subscribe method.I will get a callback on MessageListener's onFound(Message message) method.But how to extract Eddystone UUID(Namspace and Instance ID) from Message object
vicky
  • 340
  • 5
  • 13
0
votes
1 answer

Nearby Messages API not scanning beacons

I am trying to scan the Eddystone UID beacons registered with my project on Google Beacon Platform using this tutorial: https://codelabs.developers.google.com/codelabs/hello-beacons/ Somehow, the app is unable to find any beacons. I checked the…
Avinash Gupta
  • 389
  • 4
  • 16
0
votes
1 answer

'NSConcreteMutableAttributedString initWithString:: nil value' when using Google Nearby Messages

I was following Google's documentation for using NearbyMessages API. I'm using Swift3. I have the following code to set up the app to publish to nearby. let messageManager = GNSMessageManager(apiKey: "someky") var publication: GNSPublication? let…
0
votes
1 answer

MessageListener.onDistanceChanged not being called

I am publishing and subscribing to messages with Google Nearby and am receiving onFound and onLost properly, but am not receiving any callbacks on onDistanceChanged or onBleSignalChanged. I know that BLE signal changed is based on using BLE for…
Matt Hall
  • 2,569
  • 2
  • 23
  • 33
0
votes
1 answer

Nearby Notifications is Temporarily Muted

On the Nearby Notifications page (developers.google.com/nearby/notifications/overview), I found this: "Due to an issue that was discovered late in the development cycle, the Nearby Notifications feature will be temporarily muted for consumers…
Avinash Gupta
  • 389
  • 4
  • 16
0
votes
0 answers

Nearby Notification not showing for One Plus X

Nearby Notifications doesn't show automatically on One Plus X device even with Nearby discoveries enabled (bluetooth, location and data are obviously enabled). What happens here is, if user manually go to Nearby Discoveries and scan there, then…
Avinash Gupta
  • 389
  • 4
  • 16
0
votes
1 answer

Google Beacons nearby invalid url

I configured a couple of beacons with iBeacon and Eddystone, filled all the data and added Nearby notifications for simple URL. The problem is that only works for a kind of whitelist URLs: For example, with links for Google main page, Facebook,…
0
votes
1 answer

Google Beacon Platform / Nearby Notifications

In the Google Beacons / Dashboard you can create multiple Nearby Notifications attached to a single beacon. How does Google prioritise these natively when the beacon is detected? (Whilst we can add multiple notifications we can only get the first…
0
votes
1 answer

Nearby notification debugging

I have bought a beacon (#1) and registered it via the google beacon dashboard and added a nearby notification with a https web url. Using my android device running marshmallow I was regularly getting nearby notifications a week ago. Since then the…
RobM
  • 111
  • 3