Comments (20)
Whoops, just read you're talking about android. I'll check if there are any outdated packages tomorrow morning, like the google services.
from react-native-google-nearby-messages.
@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)
from react-native-google-nearby-messages.
Steps to reproduce? Are you able to run the example app?
from react-native-google-nearby-messages.
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
from react-native-google-nearby-messages.
That's very weird, especially because the Google Nearby Messages API doesn't give us more info on anything
from react-native-google-nearby-messages.
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.
from react-native-google-nearby-messages.
@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.
from react-native-google-nearby-messages.
@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?
from react-native-google-nearby-messages.
Perfect, it could be an Android specific thing I've just been having xCode issues so haven't been able to reproduce yet.
from react-native-google-nearby-messages.
Nothing wrong on the iOS side it seems, couldn't find anything errors. @mrousavy any updates on the packages?
from react-native-google-nearby-messages.
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!!
from react-native-google-nearby-messages.
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.
from react-native-google-nearby-messages.
Ever seen this @zaptrem ?
from react-native-google-nearby-messages.
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
from react-native-google-nearby-messages.
@zaptrem Here are the permissions I have:
<!-- For Nearby Messaging with Bluetooth etc -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
from react-native-google-nearby-messages.
@zaptrem Here are the permissions I have:
<!-- For Nearby Messaging with Bluetooth etc --> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
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.
from react-native-google-nearby-messages.
@zaptrem how do you request the permission? I'd like to implement that logic in a requestBluetoothPermission()
func π₯
from react-native-google-nearby-messages.
@zaptrem I granted all three permissions (coarse, fine, and record audio) to test using react-native-permissions and it still doesn't change the issue in this thread. @mrousavy also granted permissions in the example app and didn't change the issue.
from react-native-google-nearby-messages.
Hi! i haved the same problem i was reolve deleting the android api key because, was two android key.
from react-native-google-nearby-messages.
@Josel02 is your android app currently working? I'm still unable to fix.
from react-native-google-nearby-messages.
Related Issues (20)
- `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
- [BUG] Compile error in Swift code HOT 7
- [QUESTION] Can this work with two android emulators on the same computer?
- [QUESTION] Check if nearby service is allowed on the device
- Fix missing override keyword
- [QUESTION] HOT 2
- plugin with id 'maven' not found HOT 1
- [BUG] IllegalArgumentException on Android [ConnectionResult=APP_NOT_OPTED_IN] HOT 1
- 2 duplicate symbols architecture arm64 (unless I use a pod post-install script) HOT 3
- StackOverflow onFound - android HOT 1
- Can I list all nearby devices that use my app? [QUESTION] HOT 2
- Need to work this Google Nearby Feature Without Internet and wifi HOT 8
- [BUG] Not working in background job (https://www.npmjs.com/package/react-native-background-job) HOT 6
- [BUG] If Device A publishes again after initial load, it disconnects from Device B HOT 5
- what this library do HOT 3
- [FEATURE] onBLESignalChanged and onDisctanceChanged HOT 12
- Communication between iOS and Android devices is broken HOT 1
- [QUESTION] Why unpublish() is not declared as async in index.ts ? HOT 3
- Unknown Error occured while connecting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-google-nearby-messages.