Questions tagged [google-nearby-connections]
68 questions
2
votes
1 answer
Nearby Connections discovery throws error 8036 on Android10
When calling ConnectionsClient#startDiscovery(String, EndpointDiscoveryCallback, DiscoveryOptions) on my OnePlus7Pro (Android 10), I get
com.google.android.gms.common.api.ApiException: 8036: unknown status code: 8036
at…

dak
- 120
- 1
- 7
1
vote
0 answers
Google Nearby for Android multi-peer connection without Google Play Services installed
I'm currently working on an app which works with multi-peer connectivity between a few Android devices. One of the libraries that allows to do such thing is a recent Nearby library from Google. The devices have 26 API level.
However, it requires…

Alexander Gornostaev
- 55
- 1
- 5
1
vote
0 answers
Google Nearby connections - Not able to transfer large file (1GB) to other 2 device
This is based on this post answered by Xlythe. I am also using P2P_STAR strategy and trying to transfer the file (1GB) asUri to other 2 devices but when it received in other device it is showing some KB(1.98 kb) as file size and receiving below logs…

Priyanka
- 11
- 2
1
vote
0 answers
What's the best way to communicate with nearby Android/iOS devices using Flutter
Let's imagine User A.
I want to build an application that detects all users of my app who are currently close to user A (in terms of real-life proximity). They should be able to send out ID's to each other to identify which users are currently…

nicklbaert
- 57
- 2
- 7
1
vote
1 answer
Nearby Connections API: Android 5 won't detect Android 11 advertising
I have 2 device (Android 5 and 11) and I tried testing them in each other.
The Android 11 device detects advertising of Android 5 but, it doesn't detect if Android 11 is the advertiser and Android 5 is the browser. It just don't detect.
P.S: I have…

Maverick Fabroa
- 1,105
- 1
- 9
- 15
1
vote
1 answer
How to share via Nearby Share directly?
related 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?
as @Xlythe's answer, using com.google.android.gms.nearby.sharing.EXTRA_REQUIRED_PACKAGE can launch a…

jji9380
- 42
- 5
1
vote
0 answers
possible of using nearby connections api advertising in the background
I'm trying to implement a chat which use google nearby connections API,
I saw in the API page builder AdvertisingOptions.Builder is has an option called setLowPower(boolean lowPower), but it isn't implemented in the code,
is it recommend/ possible…

Rayan
- 11
- 1
1
vote
1 answer
Nearby Connections API: Android 12 fails to advertise and discover devices with unknown status codes (8037, 8038, 8039)
I'm developing an app that uses Nearby Connections API with basic P2P strategy. Suddenly, weirdly enough I'm not able to advertise and discover devices on my Pixel 3a with newest Android 12 and Play Services. OnFailureListeners throw these…

adek111
- 1,026
- 2
- 14
- 29
1
vote
1 answer
Wifi auto turn off after Nearby connection succeed in Android Go R
I got this log
2021-01-15 10:07:41.179 1004-1628/system_process I/WifiService: setWifiEnabled package=com.google.android.gms uid=10119 enable=false
It seems google services turn off my wifi after connection made.
Please help, sorry for my bad…

Nguyen Van Hanh
- 13
- 5
1
vote
3 answers
Google Nearby Connections Limit to Earshot Distance?
So I am working with trying to transfer data between two phones with Google Nearby Connections.
For example, say I want to transfer a variable from each phone to another and then show a toast containing the text from the other phone.
I have been…

danilkp1234
- 51
- 7
1
vote
1 answer
DateTime not a subtype of type TimeStamp/Unhandled Exception: Invalid argument: Instance of 'Future
So I am using the nearby connections API to discover devices around me and store their data in firestore however I keep getting 2 warnings about the location I am getting from the user that I came in contact with and the time i came in contact with…

Omar Hajj
- 41
- 2
- 5
1
vote
1 answer
How to use Android Nearby Connections over multiple activities
What is the best way to persistently keep an Android Nearby Connection running in the background over multiple activities in the app?
I did some research about Android Services and IntentService, but I feel that neither is designed to run constantly…

StackHelge
- 75
- 1
- 8
0
votes
1 answer
How to transfer files from iOS app to Android Nearby Share without an app Android?
I want to build a File sharing app for iOS, which I can use to share files to Android devices through nearby connections API. I can see that it can be done through windows nearby share and chrome OS nearby share, but I cant find anything in the…

1HaKr
- 1,098
- 1
- 11
- 18
0
votes
0 answers
How to implement reliable/repeatable Android Nearby Connections
Im investigating Android Nearby connections API and having difficulty when attempting to reconnect p2p_cluster.
the first time i install my application on my test devices I can establish a working "mesh" and communications work as expected between…

Hector
- 4,016
- 21
- 112
- 211
0
votes
0 answers
Exchange with Nearby Connection API slower than classic Wifi-Direct
When I exchange data using the Nearby Connections API, between two devices not connected to a network, and then one of them connects to the other device's Direct-Wifi network, the transfer speed is very slow.
If I use a classic Android WiFi-Direct…

LeoBe
- 13
- 4