How to check home button press?

How to check home button press?

BY 27 May 2013 Web Application Development

Hi there,

How to check home button press?

I made web app.

This app using HTML5 <audio> tag. ( = backgroud sound.)

I was setted “background support = disable” in config.xml.

But When i pressed hardware home button, sound is playing.

So.. I have two question.

1. How to check home button press? 

(I want to stop background sound, when home button press.)

 

 

Or

2. How to check application onhide?

 

Thank you.

 

Written by