Open zabi90 opened 4 years ago
Some minor changes to this library are required (imports etc) to support nativescript 7. I did submit a PR, although it likely requires some care (backward compatibility issues) #268
Having the same issue here…
The plugin is already updated for {N} 7, it's been moved under new scope like all other NativeScript plugins.
https://www.npmjs.com/package/@nativescript/geolocation
you can install it with npm
npm i @nativescript/geolocation
and replace
import * as Geolocation from 'nativescript-geolocation'; // old
import * as Geolocation from '@nativescript/geolocation'; // new
Using @nativescript/geolocation fixes the problem. This information should be in the readme of this repo.
Hi, I just created new NativeScript with Angular shared code project and added nativescript-geolocation dependencies. It is working fine so far inside android but giving error Cannot read property 'osVersion' of undefined at iOS when i used this method geolocation.enableLocationRequest(true, true) Package.json
and my component code is