Added 1 feature: Handling location sampling on ios side