question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Missing Command Error" for getMap

See original GitHub issue

I’ve been looking up and down reading about this problem but none of the fixes seemed to solve my problem even though I’ve went from downgrading the version to upgrading to beta2.

I’m using Ionic2 to build an app that focuses on GoogleMaps functionality and the problem is that the map doesn’t get rendered at all. API_KEY for android and ios is provided, i`ve used their example and it doesn’t work and the error that I get is “Missing Command Error” when googlemaps plugin calls getMap. I ran the app in the browser, ran it in the simulator, even on a real device and the result was the same 😦

The error i am getting is here. As far as I can tell this isn’t a problem with Ionic or Cordova but might be a change in the google maps api. capture

Sorry if this is a reposting of a problem but I’ve been trying to solve it for the past 2 days with no luck what-so-ever and it’s becoming really annoying.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aszharitecommented, May 12, 2017

I have no idea what those proxies are for.

Managed to fixed it. So while scouring the internet for a solution I came across a stack overflow post that said that running ionic run browser instead of ionic server should load the cordova plugin and everything should work. I guess the emphasis on should was bigger than I thought.

I think this should be in the documentation that the plugin will only work on a mobile device simulated (yes it works in the simulator as well) or real and that you have to have API enabled for Android not the Javascript one (that was also a problem).

Thank you so much for the patience and guidance. Much appreciated.

0reactions
rlam3commented, Apr 7, 2018

@aszharite were you able to resolve this? I’m having a similar issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: 'getmapdl' is not recognized as an internal or external ...
I'm trying to get the map of Africa using this commands but Texnicenter (editor) keeps bring up this error after compiling.
Read more >
getmap initialization issue · Issue #434 · mapsplugin/cordova-plugin ...
Greetings, I have been utilizing the map plugin successfully, and have started playing with options. with getmap() var mapProp2 = {'backgroundColor': ...
Read more >
R: Error in get_map()/get_googlemap() from ggmap
I am trying to use GGmap to create a plot of vehicle car crashes by state. The map will have dots which are...
Read more >
nightstomp/cordova-plugin-googlemaps - Gitter
I'm getting an error as "Missing command error" ... I updated to 1.3.9 and am getting "'getMap' is not defined in GoogleMaps" in...
Read more >
Have "Missing Command Error" when requesting a file system
js line 925: fail && fail("Missing Command Error"); is touched both at the start of at app's initialization, followed by "adding proxy for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found