added iOS detection to determine when/how locations are stored