Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 23, 2020 14:15

Problem

Setting the location in your test failed, and you received the following error message in the report: 
Failed to set device location: setLocation command failed. Reason: handset server: mock location is not enabled on device. 

Solution

Set the mock location app in the developer options of the device to the Perfecto Mobile application.

You need to perform this process manually each time the device is rebooted.

To set the mock location app:

  1. Go to Device Settings > Developer Options.
      
  2. Under Mock Location app, select Perfecto Mobile.
    The list of apps includes all applications that received Mock Location permission in their manifest.