Questions tagged [google-nearby-connections]

68 questions
4
votes
1 answer

How is Google's nearby share implemented?

Google has just released the Nearby Share feature on Aug. I'm interested in its technical aspects, but I haven't found any articles on the technical details of Nearby Share. Are there any hints? I also noticed that Google already has the Nearby…
4
votes
2 answers

How to implement a Mesh network in Android

Working on a project that should share data among 4+ devices offline. Using Google Nearby connection, we are able to establish a connection between devices via P2P-STAR topology. But what we really need is to have all devices receive and send data…
4
votes
1 answer

Nearby Connections API: Cannot access received file on Android 10

I am following this guide with the goal of transferring an image file which on the receiver side should be uploaded via a REST API. Android 10 blocks access to public folders like the 'Downloads' folder in which all received files from Nearby…
3
votes
1 answer

Nearby Connections max connected devices - clarification

I was searching what is the max number of connected devices and I came across a post that roughly states: When using P2P_STAR, the max number of devices is 10 as this topoly uses Wi-Fi hotspots. That is, if you don't have a router. This makes me ask…
3
votes
0 answers

Nearby Connections 2.0: simultaneous connection requests fail on both devices

I am working on a P2P chat application where I connect with devices and save their info in local Room database. Every time the app is launched, I start advertising and discovering (at the same time) in order to see other nearby devices but also be…
3
votes
1 answer

Nearby Connection : Discovery issues on Android 10

For one of my project I work with Nearby Connection API with P2P_STAR strategy and I experience issue on discovery with Android 10. I have tested with Huawei devices that resulted in no connection at all with host and on a freshly updated Xiaomi MI…
hbollon
  • 51
  • 1
  • 5
3
votes
0 answers

Nearby API Package for React Native

I was searching for the Nearby API package. I found 2 packages but both the packages are deprecated. Can someone please help me if they are aware of any package that is available in react native for Nearby API? I have tried below package but they…
3
votes
0 answers

Nearby connection Api When sending the file payloads it is very slow in the receiver side based on devices

If a connection strategy is P2P_CLUSTER, it's able to connect and send a payload to multiple devices, but it is very slow in receiving the payload from the sender. In Samsung s9, Samsung note9 and Lenovo PB2-670M devices it is very slow. In LG g6,…
3
votes
0 answers

How to connect 3+ devices using Google-Nearby Connection APIs

I am building an app that should connect at least 4 devices using nearby connection api. I am able to connect them intermittently, other wise only two devices are getting connected. I am using P2P-CLUSTER Topology and sending data as file payloads…
Laura
  • 73
  • 1
  • 6
3
votes
2 answers

Nearby Connections and foreground/background services

This is more of a general question, but to what extent can we use the Nearby Connections API in services? I noticed that discovery and pairing is still working while the app is out of focus, so is it possible to extract the whole connections client…
2
votes
1 answer

Why are files transferred via bluetooth when using Android Nearby Share?

Nearby Share sometimes uses bluetooth to transfer the files because of which it is very slow. Sometimes it is not at all handy to transfer files that are more than 100 MB. Initially I thought Bluetooth is used only for handshaking purposes. But…
2
votes
1 answer

How to access file that has been transferred using Nearby Connections API with android 11, as file is stored in Nearby's scoped storage?

I am trying to transfer a file using googles Nearby Connections API. Largely I can get all components of the transfer to work so that all of the files data is transferred but the issue is that the files data is then stored in Nearby's scoped storage…
2
votes
1 answer

Android Nearby Connections cannot connect to device. Always returns 8011

I am trying to use Google Nearby Connections API to connect two Android devices to exchange data but no success. The devices can found eachother none of them can connect to the other. It always fails at onConnectionInitiated()…
sOnt
  • 87
  • 1
  • 5
  • 13
2
votes
1 answer

How to authenticate programatically Connection API?

I have to communicate with more than two devices which have been working perfectly with Google NearbyAPI Connections. Now I need to secure the connection restricting the access to the cluster network. The API exposes a method to authenticate the…
2
votes
1 answer

How to connect and transfer data between iOS and Android devices within the range using Google Nearby Connections API?

I'm trying to create an app, which discovers devices around it and can transfer data to a selected device from the list of device detected. The problem I'm facing is that I am not able to get the Google Nearby Connection API for iOS. Is there any…
1
2 3 4 5