On some action there might a possibility that the application may take some extra time to execute. So, we may execute that application in the background. Appium provides a method through which we can run any application in background.
This method runs the current running application in background for the number of seconds passed in the method as argument.
Lets suppose we have to test an application and that application is not installed in the mobile device than we have to first install the application in the device. The installation of the device is taking a bit more time, so we may run that application in the background for some time(seconds).
This run the current running application in background for 15 seconds.