-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Unkown error occured while connection #25
Comments
Steps to reproduce? Are you able to run the example app? |
Returning back to this issue because I just experienced it, here's the catch error from my subscribe/publish hook: 'Error: 2806: FORBIDDEN. See: https://developers.google.com/android/reference/com/google/android/gms/nearby/messages/NearbyMessagesStatusCodes' Edit: Specifically on Android, looking into iOS now |
That's very weird, especially because the Google Nearby Messages API doesn't give us more info on anything |
Exactly, I did more looking into the error to make sure it wasn't something wrong with my API or the ability to connect to the API and I can't find anything to indicate that. I'll keep looking into this more in my application as I debug. Update: Unable to find any traces using the error hook provided, also narrowed down the issue to publishing a message. Subscribe/connect seem to be working as expected but when a message is published this error occurs without fail in my app. |
@mrousavy Any idea on what this could be? This suddenly popped up in my app and am unable to find a fix, been doing more debugging and have been able to reproduce on several devices. Still unsure about the iOS impact as I've been stuck in iOS 14 update hell. |
@LeviWilliams Unfortunately I have no idea what's causing this, and I cannot reproduce it so I have to fully rely on you guys. Are you saying you're getting that error since the iOS 14 upgrade? |
Whoops, just read you're talking about android. I'll check if there are any outdated packages tomorrow morning, like the google services. |
Perfect, it could be an Android specific thing I've just been having xCode issues so haven't been able to reproduce yet. |
Nothing wrong on the iOS side it seems, couldn't find anything errors. @mrousavy any updates on the packages? |
Hey sorry to bug you man @mrousavy , I've just still been unable to use my android app in production so trying to identify issues. Thanks for your help!! |
@LeviWilliams sorry, I've been kinda busy with uni. I've got an exam this week, I'll see if I can find some time to take a look at this. Maybe there has been a bug at the official Nearby Messages API from Google, since I didn't change anything. Also, did a quick check on packages but it seems like we already use the newest Google Services API version (17.0) |
Sounds good @mrousavy , seems like it could be a google bug as this seemed to not appear in any of my production apps until recently. Especially since it seems to only occur when publishing a message. |
Ever seen this @zaptrem ? |
Yes, I think. Check the documentation on permissions. Google isn't explicit enough that on Android it requires either the precise location permission to be granted or the "Nearby Messages" permission (or something like that). I just went with the precise location one. @LeviWilliams @mrousavy |
@zaptrem Here are the permissions I have:
|
The permission has to be programmatically requested and granted. Having it in the manifest just allows you to request it, it doesn’t guarantee it. |
@zaptrem how do you request the permission? I'd like to implement that logic in a |
Hi! i haved the same problem i was reolve deleting the android api key because, was two android key. |
@Josel02 is your android app currently working? I'm still unable to fix. |
Question
While trying example application it's throwing error
Environment
The text was updated successfully, but these errors were encountered: