Improved support for geolocation (won't drain battery when app is paused).