Though APPIUM has the desired capabilities to handle this issue for only a real device, it was not working for me.
For more info on APPIUM desired capabilities, please find the link below
https://appium.io/docs/en/writing-running-appium/caps/
mockLocationApp - is the desired capabilities.
- Description:
This sets the package identifier of the app, which is used as a system mock location provider since Appium 1.18.0+. This capability has no effect on emulators. If the value is set to null or an empty string, then Appium will skip the mocked location provider setup procedure. Defaults to Appium Setting package identifier (io.appium.settings).
e.g., null, io.appium.settings, example.your.app
I have checked with our developer, it was handled from the backend (code level).