A Service is an application component that can perform long-running operations in the background and does not provide a…