I have to automate goefence scenario , in android and Ios

Scenario - if the user reaches within 5 metres radius of a site , one popup displays " Do You want to enter the site?"

I have mocked the lat and long in the C# code
_driver = new AndroidDriver(new Uri(“”), appiumOptions);
_driver.Location.Latitude = 37.334150;
_driver.Location.Longitude = -122.047310;

But when i run the code I get the error ,
OneTimeSetUp: OpenQA.Selenium.WebDriverException : An unknown server-side error occurred while processing the command. Original error: Cannot parse the actual location values from the command output: Broadcasting: Intent { act=io.appium.settings.location flg=0x400000 cmp=io.appium.settings/.receivers.LocationInfoReceiver }
Broadcast completed: result=0, data=""