Google API key is not working in release/ debug API, working on local machine in react native - react-native

configured all the things for place API to use google autocomplete
after that linked billing account in google cloud
Google API key is not working in release/ debug API, working on local machine in react native
Need to show list of items

Related

Can I authorize Google maps SDK before deploying an Expo app to Play Store?

I have an Expo app that uses react-native-maps. It works well on Expo Go and I would like to deploy it to Google Play Store.
According to Expo documentation, I have to:
deploy the app on Google Play Store to generate app signing credential
copy the SHA-1 certificate fingerprint in Google Play console
create an API key in Google Cloud Credential manager
paste the API key in app.json
rebuild the app and re-submit to Google Play Store
So, to my understanding, the app will be available for users without maps activated. Then I'll have to deploy it again with maps activated. It sounds very counter-intuitive, and puts me at risk to get bad reviews from first users, who will claim the app "doesn't work" (because there is no map of course)
Is there a way to immediately publish a working app? If I need to handle a two step process, will the second build be immediately available in the Play Store, or will it be subject to a 3 days review?

How to generate a reCAPTCHA site key for React Native app

I'm trying to add reCAPTCHA to my react native app. I'm using GCP's React Enterprise, but their docs specify website, iOS app, or android app for the key's platform type. Will the site key for an iOS or android app work in my React Native app? If not, how would I generate the site key that works with React Native?
According to my research, React Native is well integrated when it comes to Google Recaptcha. I think your question is more related to the mobile apps than the integration of both services.
Will the site key for an iOS or android app work in my React Native app?
That depends on the type of key that you choose to use, reCAPTCHA Enterprise provides score-based (no challenge) and checkbox (checkbox challenge) site keys to verify user interactions on your web pages and mobile applications. Both key types return a score for each request, which is based on interactions with your site or application. This score lets you understand the level of risk that the interaction poses and helps you to take appropriate actions for your site or application.
If you use the Score-based site key (recommended), it will be supported by websites and mobile platforms, unlike the Checkbox site key, which only supports websites. Link
How would I generate the site key that works with React Native?
In the official documentation, they have a tutorial about Create site keys for mobile applications, and they mention that you can create only score-based site keys for mobile applications.
This is the link.

App won't run without google play services, which are not supported by your device Error while using firebase analytics for react native mobile app

I am trying to integrate firebase analytics on react native app, I have completed all the prerequisites and got a successful build running on Honeywell android Device, but when I open the app it gives above error. There are many such duplicate question but nothing works for me as I can't have play store as the target devices are Handheld android devices and not mobile devices. How to integrate firebase analytics without having to install google play service.
Thanks for Answer #JakeSteam
But I could get firebase integration working without google play service error.
Issue Details:
I was using react native firebase 5.x.x, which works fine but will give a pop up message mentioned in question if your device doesn't have google play service.
Workaround:
Upgrade react native firebase to version 6.x.x, the community has redeveloped this repo and I am not having issues with it now.
NOTE:
Without google play service on your device you can only use few firebase services like analytics, crashlytics etc.
As a Firebaser said:
Firebase as a platform requires Google Play Services, even though some Firebase products may be able to work without it.
If you cannot use Google Play Services, you may want to look into Google Analytics, which does not require it:
Note: Google Analytics can be used and will work on devices that do not have Google Play Services. In this case you still download and use the Google Play Services SDK and Google Analytics will automatically fall back to local dispatching.

Can Google barcode reader be used without play services installed on a phone?

I have an embedded phone application where the phone is running Android 7 without any GMS apps, including play services, since it is not a GMS certified device.
Can I use the Google barcode reading SDK on this device, or does it require Google Play Services to run?
There will be two options here:
Route 1 - Using Google Bar Code Reader
If you will be going to this route, one prerequisite will be: you have to use Google Play Services since you'll be using a service from Google (Google Mobile Vision SDK). Try checking their codelab, you'll see all the prerequisite libraries you have to use.
Route 2 - Not using Google Play Services (GPS)
As the route says, this will be using external or 3rd party libraries.
References:
Scan QR code without using google play services
How to install the barcode scanning library without a google account?

React Native Google Places API restriction issue

I get the following error while using React Native Google Places autocomplete.
This IP, site or mobile application is not authorized to use this API
key...
I'm using a Google Places API Web Service key, which restrictions on Android-App.
This one is restricted with the package name com.xxx.xxx.debug and com.xxx.xxx.test. Another API key is restricted to com.xxx.xxx.
I've added the proper SHA-1 key.
Anyone has a clue what I'am doing wrong or why it doesn't work?
I've checked the docs of Google and tried out many different things, still I cannot get it to work with a restriction.
Add your React-Native android package id to the key you are using for Google Places API. You can find it in Project(Root Folder) => android => app => build.gradle => application id