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

How do I know if a user came to my app via Nearby Notifications?

I want to get the number of clicks my App Intent gets when user comes in proximity of Nearby Beacons.
0
votes
1 answer

GNSPermission Alert Dialog not appearing in iOS

#import "NearbyHandler.h" #import static NSString * const kMyAPIKey = @"********"; @interface NearbyHandler () @property(nonatomic) GNSPermission *nearbyPermission; @property(nonatomic) GNSMessageManager…
0
votes
1 answer

Google nearBy BLE background subscription only for screen on events

As per the current Google nearBy documentation, for background BLE subscription "low-power scans are triggered only at screen-on events, even when your app is not currently…
0
votes
2 answers

Nearby Messages API not working after release

I´ve got a problem with the Nearby Messages API. Following scenario: When I test my App with Android Studio everything is working fine, Messages are sent and get received. When I build an APK and install the generated (and signed) APK on the…
Andy
  • 129
  • 1
  • 3
  • 15
0
votes
1 answer

How to make Nearby Notifications open existing app?

I feel like this is an embarrassingly stupid question, but oh well, as long as I get an answer. The purpose of an app intent Nearby Notification is that users who tap the notification will be taken to the Play Store to install an app if they don't…
Chad Schultz
  • 7,770
  • 6
  • 57
  • 96
0
votes
0 answers

Nearby Messages: AudioBytes not being received

Google Play Services 10.2 includes AudioBytes: https://developers.google.com/android/guides/releases#february_2017_-_v102 As I understand it, it's a message that can be transmitted directly from one device to another using ultrasonics, instead of…
Chad Schultz
  • 7,770
  • 6
  • 57
  • 96
0
votes
0 answers

Google nearby - subscribe fails after publish

I am writing a sharing app using Google Nearby. I am using MESSAGES_API to publish a message and subscribe to others. The problem is that once a device publishes a message, it will no longer receive messages. I have several devices I am testing…
Martin
  • 4,711
  • 4
  • 29
  • 37
0
votes
1 answer

How to make a grid of buttons connected with google maps api?

I'm trying to make an android application (NearBy places) using google places api and google maps api v2. I'm using this code,it looks good but I want to make a grid of buttons first, and when I click on one of them it show me the nearest places.…
0
votes
1 answer

How to check whether app is succesfully connected to Google Nearby Api key?

Our apps can connect to GoogleAPIClient even though the KEY is wrong or not supplied. MainActivity.java public class MainActivity extends…
John
  • 31
  • 5
0
votes
0 answers

google nearby not getting attachments

We are currently implementing Google Nearby for our beacon network. We have implemented the Google Nearby API for Android. We have successfully subscribed and see that API calls are being made. However we do not see any attachments. Our setup: We…
John
  • 31
  • 5
0
votes
1 answer

Not getting attachments from Nearby Messages API

I am using Nearby messages API for android. I was getting the attachments using API before, till end of January. However, it has abruptly stopped working. I can see the request calls my app making in the google cloud console. However, I am not…
0
votes
0 answers

nearby message api is not calling onFound method for beacon

I am trying to use beacons in my project. Initially all was going well. I was able to register beacon and listen all attachments from it in my application but Now I am facing an issue. I have registered one beacon(device used of BKON comapny) with…
0
votes
0 answers

Google Play Services chrash when using Android Nearby Connections

I try to implement a small test application for Googles Nearby Connections API. Unfortunately on 2 of 3 tested devices Google Play Services chrash when discovering or advertising. (OnePlus One, Android 6.1; Acer Iconia, Android 4.4) I see other…
SteffenH
  • 97
  • 3
  • 12
0
votes
0 answers

Nearby icon no longer illuminates and Nearby app doesn't show notification

I successfully registered a beacon using the Beacon Tools app and received a Nearby notification on multiple occasions after setting them up in the Beacon Dashboard https://developers.google.com/beacons/dashboard/ I removed and added several…
Michael T
  • 1
  • 1
0
votes
1 answer

In Nearby Message API How Can I get NearBy devices list who are connected??

Using Nearby Connection API we can get the Endpoints (means Nearby devices list)..So In Nearby Message API How Can I get NearBy devices list who are connected like NCAPI??