You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Cannot read property 'osVersion' of undefined at iOS #270
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
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
Activity
nickolanack commentedon Oct 7, 2020
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
SKTAR commentedon Oct 9, 2020
Having the same issue here…
bellalMohamed commentedon Oct 14, 2020
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
and replace
saibbyweb commentedon Oct 26, 2020
Using @nativescript/geolocation fixes the problem. This information should be in the readme of this repo.