louisbl / cordova-plugin-gpslocation

Native GPS Location for Cordova - Android
Apache License 2.0
20 stars 25 forks source link

Getting an error GPSLocation is not defined. #2

Open katakeynii opened 9 years ago

katakeynii commented 9 years ago

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

jingang13 commented 8 years ago

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

kinorsi commented 8 years ago

@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.