Category : google-nearby

I am currently on android SDK level 29. (Android 10/11) In my android manifest I grant permissions as such: <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> I also grant location permissions for MainActivity, which is the parent activity for the fragment that uses user location data as ..

Read more

I am trying to implement something similar to this (https://github.com/ankitsinghmyself/SearchNearByPlace) in my Android application. I have tried running the persons code straight from GitHub with my own API key and it works but will not allow Nearby Search. I have tried two YouTube tutorials and two GitHub repos and no luck with Nearby Search. Can ..

Read more

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 Google Nearby Connections API, would there be any ..

Read more

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 non none of them can connect to the other. It always fails at onConnectionInitiated() with STATUS_ENDPOINT_UNKNOWN when I try to accept the connection. I tried it with Strategy.P2P_POINT_TO_POINT Strategy.CLUSTER and ..

Read more

I’m trying to develop an offline P2P Network and am looking to adopt the P2P_CLUSTER strategy in my app. However, the v2 version of the Nearby API doesn’t seem to have samples for P2P_CLUSTER. I would greatly appreciate any pointers on how to approach this or any alternatives for offline P2P Cluster communication in Android. ..

Read more