This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
ios Error: New location is older than requested maximum age! #79
Closed
Description
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?
- iOS
- iOS 11.0.2
- Device. iPhone 6?
Please, provide the following version numbers that your issue occurs with:
"nativescript-pro-ui": "^3.1.3",
tns --version 3.2.0
"tns-ios": {
"version": "3.2.0"
}
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
`geolocation.isEnabled()
.then((hasPermission) => {
if (hasPermission) {
this.getLocation();
} else {
geolocation.enableLocationRequest()
.then(() => {
this.getLocation();
})
}
})
.catch(() => {
geolocation.enableLocationRequest()
.then(() => {
this.getLocation();
})
});`