I am using cordova geolocation plugin in Ionic app . when i ran the app inside emulator i found this bug Only secure origins are allowed . hence was unable to get the geolocation of inside emulator . but using locahost it works fine probably localhost comes under secure origin.
browser im using is chrome. plugin https://ionicframework.com/docs/native/geolocation/