Questions tagged [google-nearby-connections]
68 questions
0
votes
0 answers
Nearby Connections API: Consistent disconnections when using Wi-Fi LAN on two specific devices
I'm working on an app that uses the Nearby Connections API which involves sending a series of large files (around 20-30 MB each). I'm using the P2P_STAR strategy as I intend to have a "master" device coordinating a group of "worker" devices, though…

JAK Zero
- 301
- 6
- 13
0
votes
1 answer
Nearby Connections API: Why isn't Wi-Fi Direct a supported medium for my Galaxy S8?
I'm working on an app that uses the Nearby Connections API. Connections and file transfers seem to work mostly fine on other devices, but I noticed some odd behaviour when using my Samsung Galaxy S8. After reviewing the logs I found this…

JAK Zero
- 301
- 6
- 13
0
votes
0 answers
Flutter using nearby_connections in Peer to Peer to send and Receive a Package
The code I've written here seems to connect two devices when the first chooses to be the "DISCOVERER" and the other the "CONNECTOR".
When I try to execute "SEND PACKAGE", it says that the Payload was sent, but the other device does absolutely…

Tomas Simons
- 31
- 8
0
votes
1 answer
Is there a way to share a link via Nearby Share & receive the link via a custom app on the second device using Nearby Connections API?
I want to share data using Nearby Share so I can avoid putting an app on device 1. Then I want to accept that data on a custom app on device 2 so I can transform it and do something else with it.
Is this possible?

Erimus
- 1
0
votes
1 answer
Nearby API connection and endpoint lost timeout
I'm currently developing an application which uses Google Nearby Connections API. I'm curious whether there is a method to change the timeout for onEndpointLost (method of the EndpointDiscoveryCallback class) and onFailure (method of the…

DomonkosCs
- 3
- 1
0
votes
1 answer
Android Nearby Connection API not available for specific devices
I am building an Android app making communication between two devices.
For this purpose, I am using Google Nearby Connection API and everything is working fine so far.
But specifically on Xiaomi 10X pro, the advertising cannot be…

GUL
- 207
- 1
- 8
0
votes
1 answer
Nearby show available connections list
I want to use nearby connections in my app.
Now I am using only the pre-connection state. The only thing that I supposed to know is if one device is in line of sight of another. But the requirements changed so now I need to connect two devices…

KeitL
- 188
- 2
- 13
0
votes
0 answers
Unable to access downloaded file from Google Nearby Connections API in android Q
In android Q, Payload.File.asJavaFile() returns null. Getting exception when trying to access the file using the approach below. They said to use Payload.asFile().asUri() in the documentation, however asUri() does not exist in the library anymore.…

Prodigy
- 105
- 1
- 6
0
votes
1 answer
Can you update a message on google nearby message API?
I have 2 simple questions that I did not find by reading the official documentation about google nearby message API
https://developers.google.com/nearby/messages/android/pub-sub
If you publish multiple messages with the publish method (on the same…

John
- 313
- 4
- 17
0
votes
1 answer
Nearby Connections API and Nearby Share discovers same device more than once
There is a problem I've noticed with the Nearby Connections API, sometimes the same devices gets discovered two or more times. They have the same name but different endpointId.
If we try to initiate connection with the first discovered device it…

Daguna
- 141
- 8
0
votes
1 answer
How can i access cross-platform(android/iOS) bluetooth detection for flutter?
Newbie here. I am trying to make a hybrid mobile app in flutter that will detect nearby Bluetooth devices based on some unique ID. I want to read that unique ID from the endpoint and compare it onto the DBMS. I want this for both android as well as…
0
votes
0 answers
Android Kotlin: " MISSING_PERMISSION_ACCESS_COARSE_LOCATION"
I am currently on android SDK level 29. (Android 10/11)
In my android manifest I grant permissions as such:
…

Ian
- 7
- 5
0
votes
0 answers
Nearby Connection keeps disconnected when sending files
I have implemented an app which allows user sending files using Nearby Connection API. But I faced problem that the connection keeps disconnected sometimes.
Here is the log I got when disconnected.
12-29 10:00:37.841 1068 1148 I RilClient:…

Nguyen Van Hanh
- 13
- 5
0
votes
1 answer
In Google Nearby Connections API, is there any way to keep advertise on while the app is off?
I am trying to create an app where users can see the information of other users in a nearby area(30m). I decided to use Google Nearby Connections API(P2P_CLUSTER), as I want users to be able find other users, as well as be found by other users.
In…

Ian
- 7
- 5
0
votes
1 answer
Google Nearby Connections - Timed Advertising
I am using google Nearby connections to create a P2P network using the Star strategy and I was wondering if it is possible to set the advertising device to stop advertising after a 5 minutes.

Mike
- 7
- 5