I have created a page and showed a component on that page. I am opening that page in the lightning tab from lightning quick action. I want to call a apex method whenever user close that page either from browser close or from tab close. So to achieve above requirement is there any way?
Thanks in advance.