NativeScript / nativescript-geolocation

Geolocation plugin to use for getting current location, monitor movement, etc
Apache License 2.0
139 stars 76 forks source link

[help wanted] exception handle... #282

Open dvlpr91 opened 2 years ago

dvlpr91 commented 2 years ago

In the catch of 'enableLocationRequest', the reason is not formatted, so it is difficult to handle the exception.

example...

if (err == 'Location not enabled.') {
  // ...
} else if (JSON.stringify(err) === foo) {
  // ...
} else ...

What should I do?