How to use Google Places Autocomplete API in React Native Android? - google-places-api

I am trying to use the Google Places Autocomplete API in RN Android (link to Google Doc as below). However, as the JS version of the API is meant for web app, I am not sure how to include the script into my RN Android code (original code for web application: ). Is there a way to use this API in RN? Or because the Google Places API also has an Android native version, do we have to write an Android native module and hook it to RN as explained in the "Guides(Android)/Native Modules" in the official RN doc?
Thanks a lot!
Google Places Autocomplete API JS: https://developers.google.com/maps/documentation/javascript/places-autocomplete
Official RN doc on Native Modules: http://facebook.github.io/react-native/docs/native-modules-android.html#content

Try to avoid using https://github.com/FaridSafi/react-native-google-places-autocomplete, as this will use Google Places API, which will not support mobile application API key restriction.

You can use npm install googleplaces to install google places npm packages in your project and
use require('googleplaces') in your code to access it
Checkout https://www.npmjs.com/package/googleplaces for more details. I've not tested it but I guess you can use it like other npm packages for react-native

Related

Using Google Earth Engine node_module in Laravel application

I working on web application with Laravel framework and I need to use Google Earth Engine Javascript API in my application and I have installed with npm install --save #google/earthengine and it has been installed without any issue, located in my project node_modules/#google/earthengine but I don't know how to use it in my application I have tried with NPM Installation Google Earth Engine API but there is no in details instruction in this regard.

How to use the Plugin.Storereview for requesting reviews on Appstore in Xamarin forms Application?

I am a beginner in Xamarin forms. I have installed the plugin
https://github.com/jamesmontemagno/StoreReviewPlugin
I haven't found any usage documents on how to initialize/ how to do the setup for using the plugin when i looked on the web.
How can I display the prompt to the user using this plugin?
I just did a test and you do not need any additional steps to use this plugin.
Install this plugin through manage nuget packages and the in your project:
Use the namespace:
using Plugin.StoreReview;
Use the method:
CrossStoreReview.Current.OpenStoreListing("appid");
You need to test with a real device instead of a simulator.
The Store Review Nuget plugin has been updated to v3 recently thanks to the new (August 2020) Android native Play Core library so that it displays an In-App Review on both iOS & Android:
https://devblogs.microsoft.com/xamarin/android-in-app-reviews/
So now, initializing and setup is a lot easier and you don't need to pass the appid anywhere, it will be shown directly in the app

Web intent plugin in NativeScript

I building Bookmarks manager app in Nativescript. i am looking for a plugin related to web intent, but i could find any. If any one have any idea to achieve similar functionality like this React native plugin for intent, Please help
Thanks in advance
It's quite straight forward on Android, you would use JavaProxy to create an activity Or simply use your NativeScript activity if you want to open your application itself upon sharing, add the same intent-filter under that activity in AndroidManifest.xml file.
With iOS, there is an option feature request for building app extensions. But still there are some POCs for app extensions available on Github which seems to require some manual steps as mentioned in the Github issue.

React-Native app reverse engineering and obfuscation

Is react-native expo generated apk obfuscated?
exp build:android
How can I retrieve my react native JS source code back using that apk? Do I need dex to java compilers for this purpose?
Looking for your valuable suggestions as I am concerned about the security of my react native app and trying to compare obfuscated vs non-obfuscated code
There is no need to decompile the app using dex to java tools.
If you generate a production build it will be minified, but this is far from being a high level obfuscation which you can try to achieve with react-native-obfuscating-transformer
You can find the js bundle by opening the apk with a zip archive manager. The bundle will be at:
/assets/index.android.bundle
In anycase, any client side code should be treat as unsafe, if you need security use your backend to handle it.

Xamarin Google Tag Manager Integration

My goal is to integrate the GTM (Gootle Tag Manager) SDK in a Xamarin.iOS app without having to use Firebase.
Problem:
The instructions for integrating GTM from the Xamarin component store only show how to integrate via Firebase. Whereas Google provides 2 options, including one that does not require Firebase.
Additionally the GTM Xamarin component is missing types and methods provided by the original Google GTM SDK. Ex: TAGManager, TAGContainer
Any help would be greatly appreciated.
Not sure if you have figured this out. Hopefully this could help someone hoping to do the same. We currently use TagManager with Google Analytics in our Xamarin apps.
You need to install specific version of Google TagManager via Nuget and latest Google Analytics for your Xamarin.iOS app.
Packages currently used:
Xamarin.Google.iOS.Analytics - v 3.17.0.1
Xamarin.Google.iOS.TagManager - v 3.15.0.5
These packages should allow for the objects you are looking for TAGManager, TAGContainer to be found.
Follow this tutorial from a colleague of mine if you want Enhanced Ecommerce:
How To Implement Google Tag Manager Enhanced Ecommerce iOS in Xamarin

Resources