Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 838a96b

Browse files
author
Zdravko
authored
Merge pull request #204 from NativeScript/zbranzov/bump-5.0
chore: bump version to 5.0
2 parents 1c9b8d1 + 703447e commit 838a96b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ geolocation.getCurrentLocation({ desiredAccuracy: Accuracy.high, maximumAge: 500
9090
9191
| Method | Returns | Description |
9292
| --- | --- | --- |
93-
| getCurrentLocation(options: Options) | Promise<Location> | Get current location applying the specified options (if any). |
93+
| getCurrentLocation(options: Options) | Promise<Location> | Get current location applying the specified options (if any). Since version 5.0 of the plugin, it will use [requestLocation](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620548-requestlocation?language=objc) API for devices using iOS 9.0+. In situation of poor or no GPS signal, but available Wi-Fi it will take 10 sec to return location. |
9494
| watchLocation(successCallback: successCallbackType, errorCallback: errorCallbackType, options: Options) | number | Monitor for location change. |
9595
| clearWatch(watchId: number) | void | Stop monitoring for location change. Parameter expected is the watchId returned from `watchLocation`. |
9696
| enableLocationRequest(always?: boolean) | Promise\<void\> | Ask for permissions to use location services. The option `always` is applicable only for iOS. For a custom prompt message on IOS, the following keys are required. NSLocationAlwaysUsageDescription, NSLocationUsageDescription and NSLocationWhenInUseUsageDescription [Read more about its usage](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization) . |

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-geolocation",
3-
"version": "4.5.0",
3+
"version": "5.0.0",
44
"description": "Provides API for getting and monitoring location for NativeScript app.",
55
"main": "geolocation",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)