How to set Website url and Google Maps Key

Last Updated On September 30, 2020
You are here:

Edit the app/Constants.ts file:

  • Edit the url file with your website domain, including http/https (to avoid incompatibility problems please use https)
  • Change GoogleMapsKEY field with your Google Maps key
  • Run the next command on your terminal
ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator --variable GOOGLE_API_KEY_FOR_ANDROID="AIzaSy-your_key"

Please remember to activate Maps Static API and Geocoding API and Maps JavaScript API on Google Cloud Console

Then rebuild the app or run it on browser to see the changes.

Be sure the app configuration inside the Google Dev Console is right. You need this configuration:

4 thoughts on “How to set Website url and Google Maps Key

  1. i followed the instruction i i get this

    [ERROR] An error occurred while running subprocess cordova.cordova.cmd plugin add uk.co.workingedge.phonegap.plugin.launchnavigator–verbo… exited with exit code 1.Re-running this command with the –verbose flag may provide moreinformation.ionic:utils-process onBeforeExit handler: ‘process.exit’ received +0msionic:utils-process onBeforeExit handler: running 1 functions +2msionic:utils-process error while killing process tree for 6120: Error: Commandfailed: taskkill /pid 6120 /T /Fionic:utils-process ERROR: The process “6120” not found.ionic:utils-processionic:utils-process at ChildProcess.exithandler (child_process.js:303:12)ionic:utils-process at ChildProcess.emit (events.js:315:20)ionic:utils-process at maybeClose (internal/child_process.js:1021:16)ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {ionic:utils-process killed: false,ionic:utils-process code: 128,ionic:utils-process signal: null,ionic:utils-process cmd: ‘taskkill /pid 6120 /T /F’ionic:utils-process } +519msionic:utils-process onBeforeExit handler: error from function: Error: Commandfailed: taskkill /pid 6120 /T /Fionic:utils-process ERROR: The process “6120” not found.ionic:utils-processionic:utils-process at ChildProcess.exithandler (child_process.js:303:12)ionic:utils-process at ChildProcess.emit (events.js:315:20)ionic:utils-process at maybeClose (internal/child_process.js:1021:16)ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {ionic:utils-process killed: false,ionic:utils-process code: 128,ionic:utils-process signal: null,ionic:utils-process cmd: ‘taskkill /pid 6120 /T /F’ionic:utils-process } +17msionic:utils-process processExit: exiting (exit code: 1) +16msC:\Users\sankara\Downloads\codecanyon-sxcVreLb-custom-listing-app-a-mobile-app-compatible-with-mylisting-theme\customlistingapp_v1-4-2\Custom Listing App – Ionic Code>

Leave a Reply

Your email address will not be published. Required fields are marked *