react-native-nearby-api icon indicating copy to clipboard operation
react-native-nearby-api copied to clipboard

Android version getting FORBIDDEN while publishing message

Open harshalkd opened this issue 7 years ago • 3 comments

Hello team,

i am running this plugin in Android device 8.0 and i configure all steps as per given document and i run application in android every time i get error message like Publish Failed : FORBIDDEN

help me for above issue

harshalkd avatar Aug 07 '18 13:08 harshalkd

@harshalkd make sure you have your api key in the correct part of the AndroidManifest.xml (i had this issue and found i had put it in the <mainifest> element instead of the <application> element)

joshbalfour avatar Sep 19 '18 19:09 joshbalfour

Same issue on Android 9 and 10. Can't publish a message...

zabojad avatar Oct 25 '19 15:10 zabojad

OK, in my case, it's because I did not set the right keystore SHA1 in the firebase console > API key settings. I did not notice that latest react native cli generates a debug.keystore in the android/app folder and I was wrongly using the SHA1 of the default system debug.keystore.

zabojad avatar Oct 25 '19 18:10 zabojad