cordova-plugin-gpslocation icon indicating copy to clipboard operation
cordova-plugin-gpslocation copied to clipboard

Getting an error GPSLocation is not defined.

Open katakeynii opened this issue 9 years ago • 2 comments

hi ! I have followed the instruction but I get this error "GPSLocation is not defined". Should I do something before start using getCurrent function?

katakeynii avatar Jun 22 '15 11:06 katakeynii

I have the same problem, now. Do you solve it? Thanks

jingang13 avatar Aug 10 '15 07:08 jingang13

@Katakeyni @jingang13 Well, I got the same problem. Then I found that, my ng Controller fires before ionicPlatform.ready. This plugin needs device ready. So you can test it by using the GPSLocation object in the ready function. Hope it works.

kinorsi avatar Dec 23 '15 06:12 kinorsi