Giter VIP home page Giter VIP logo

Comments (20)

mrousavy avatar mrousavy commented on June 11, 2024 1

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.

mrousavy avatar mrousavy commented on June 11, 2024 1

@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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

Steps to reproduce? Are you able to run the example app?

from react-native-google-nearby-messages.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

mrousavy avatar mrousavy commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

@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.

mrousavy avatar mrousavy commented on June 11, 2024

@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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

Ever seen this @zaptrem ?

from react-native-google-nearby-messages.

zaptrem avatar zaptrem commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

@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 avatar zaptrem commented on June 11, 2024

@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.

mrousavy avatar mrousavy commented on June 11, 2024

@zaptrem how do you request the permission? I'd like to implement that logic in a requestBluetoothPermission() func πŸ”₯

from react-native-google-nearby-messages.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

@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.

josebrc avatar josebrc commented on June 11, 2024

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.

LeviWilliams avatar LeviWilliams commented on June 11, 2024

@Josel02 is your android app currently working? I'm still unable to fix.

from react-native-google-nearby-messages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.