Ionic 2 geolocation plugin works only when reboot phone



Until a few weeks, my app works good. But since a days ago, the cordova geolocation plugin is not working correctly. I need to reboot the phone to make it works.

Any ideas? Here my code.

let locationOptions = {timeout: 50000, enableHighAccuracy: true};
                (position) => {
                    let options = {
                      center: new google.maps.LatLng(position.coords.latitude, position.coords.longitude),
                      zoom: 16,
                      mapTypeId: google.maps.MapTypeId.ROADMAP
           = new google.maps.Map(document.getElementById("map"), options);
                (error) => {
                }, locationOptions



Not working for me as well… even reboot won’t help… it keeps return me positionerror with no helpful message at all…


This is weird, same issue. For me also rebooting solves the issue temporarily.
By the way, how do we get to prompt the user with the settings screen to enable GPS?