courtesy - https://github.com/MrNickBreen/backgroundLocation