9/14/2023 0 Comments Google maps c![]() ![]() Once you’ve modified your projects to use the geolocation permissions you’re ready to sign up for a Google Maps API Key. With Android, you don’t describe the usage in your code but instead, describe it on your Google Play Store page. This allows your app to use the underlying geolocation permissions needed. These variables should contain an explanation for why your app uses geolocation and will appear in the permission pop-up when you first call a plugin method.įor Android, you’ll add the following lines of code to your AndroidManifest.xml. npm i you’ve installed the plugin you’ll need to change some native configurations in order to let users know that you’re requesting geolocation permissions for your app.įor iOS, you’ll need to modify the ist file to add the NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription keys to describe to your user why you are requesting location permissions. You can add the Capacitor Google Maps plugin to your application by installing it from npm. Let’s take a quick look at the Google Maps plugin API and how you can add a map to your app. Today we’re excited to announce a new, open-source Capacitor plugin: With you can embed a native Google maps experience directly into your Capacitor app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |