[Gear] onclose app?

[Gear] onclose app?

BY 04 Jul 2014 Web Application Development

Hi, I read that there isn’t an event to capture if the hardware button is pressed. But there isn’t an event to capture the application exiting, too?

I mean: if I click the hardware button the application exits: is it impossible to cature this event? I tried document or window (or even body) onclose or onunload onbeforeunload but no chance …

BTW I do not use jQuery …

Thank you.

Written by