From 703447eef6bdcc2bfc305427ece33398157a124c Mon Sep 17 00:00:00 2001 From: Zdravko Branzov Date: Wed, 13 Mar 2019 15:19:06 +0200 Subject: [PATCH] chore: bump version to 5.0 --- README.md | 2 +- src/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 522dc13..044a6af 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ geolocation.getCurrentLocation({ desiredAccuracy: Accuracy.high, maximumAge: 500 | Method | Returns | Description | | --- | --- | --- | -| getCurrentLocation(options: Options) | Promise | Get current location applying the specified options (if any). | +| getCurrentLocation(options: Options) | Promise | 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. | | watchLocation(successCallback: successCallbackType, errorCallback: errorCallbackType, options: Options) | number | Monitor for location change. | | clearWatch(watchId: number) | void | Stop monitoring for location change. Parameter expected is the watchId returned from `watchLocation`. | | enableLocationRequest(always?: boolean) | Promise\ | 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) . | diff --git a/src/package.json b/src/package.json index 3f5ce83..f551431 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-geolocation", - "version": "4.5.0", + "version": "5.0.0", "description": "Provides API for getting and monitoring location for NativeScript app.", "main": "geolocation", "typings": "index.d.ts",