Ionic 2: Command error: Unprepared (in promise): [object PositionError]

Several times, when the command is launched, this error appears, and after a few seconds it automatically disappears:

I should mention that this error only occurs on the map page that loads the google map.

Uncaught (in promise): [object PositionError] 

enter image description here

+6
source share
1 answer

it’s better if you show some code ... but it seems that the error is due to the inability to fulfill the promise [object PositionError] , probably the application works fine when testing on the phone using GPS on to extract data

try to catch an error, for example.

  this.service(...).then(res => {}, err => {}) 
+6
source

Source: https://habr.com/ru/post/1015577/


All Articles