Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic 2 serve command error: Uncaught (in promise): [object PositionError]

Some times when serve command runs, this error appears and after several time it automatically goes away:

I have to mention that this error occurs only on map page which loads google map.

Uncaught (in promise): [object PositionError]

enter image description here

like image 389
RSA Avatar asked Mar 08 '17 06:03

RSA


1 Answers

its better if you show some code... but it seems that error generates from not being able to fulfill a promise [object PositionError] probably the app acts fine when testing on phone with GPS on to retrieve data

try to catch the error e.g.

 this.service(...).then(res => {}, err => {}) 
like image 117
Yasir Avatar answered Sep 22 '22 12:09

Yasir