Hello,
in app I’m currently working on i have to display current user location on map when user clicks button. In page I created PositionSource like this
PositionSource{
id: positionSource
updateInterval: 600
}
And in onPushed handler set positionSource.active to true and in onPopped positionSource.active to false. The problem is when I start app on android with location turned on everything works fine and I can get current position of user. However when I start application and location is turned off when I’m on mentioned page and turn on location from device settings PositionSource not detect it and still giving an error. I think it is related to PositionSource beacuse once I wrapped PostionSource in Component and load it when page is pushing onto the stack, so when I back from that page and push it again I can get current location when I turned location in device settings. Is there a way to turn device location and ‘reset’ PositionSource to work properly? Location permission was granted ofc.