android / connectivity-samples

Multiple samples showing the best practices in connectivity on Android.
Apache License 2.0
1.66k stars 1.32k forks source link

Could not subscribe, status = Status{statusCode=unknown status code: 2806, resolution=null} #149

Open lahoti-clicklabs opened 8 years ago

lahoti-clicklabs commented 8 years ago

I am getting this error after subscribing. My google api client is initialized . I have added the api key both with and without the SHA 1 fingerprint. I still can't figure out why it is not able to subscribe

lahoti-clicklabs commented 8 years ago

https://developers.google.com/android/reference/com/google/android/gms/nearby/messages/NearbyMessagesStatusCodes

lahoti-clicklabs commented 8 years ago

It says it can't be resolved at my end. What shall i do ?

ofalvai commented 8 years ago

In my case, the reason I got this error code (FORBIDDEN) was because I forgot to enable the Nearby Messages API in the Google API Console, just generated an API key.

waged commented 6 years ago

This is because the API KEY I have the same problem put solved when I defined the API key for Android and filled the SHA1 and the App package Name
After That it worked with me ...