Skip to main content

Terminate an app (app.close)

Declaration

app.close(bid_or_pid)

Parameters

  • bid_or_pid
    String (bundle id) or Integer (pid).

Notes

  • Force terminate an app. If the app is not running, nothing happens; the operation does not fail.
  • This is a force kill and the target app will not receive any notification.
  • On iOS 8 and later, prefer app.quit.

Example