I am developing a chat application in which I use pause and resume event.
document.addEventListener ('pause', onpause, false);
document.addEventListener ('resume', onresume, false);
This event works great when I open the application and press the home button on the Android phone, these events are perfect. But my problem is that in the chat application I send file attachments from the gallery when I select the browse button, the phone’s image gallery, and at the same time, pauses are fire. while I am in the image gallery without selecting any images at the same time, when I press the home button, the same event does not fire. Since I can prevent a pause event when selecting a file from the gallery.
Is there any other way to do this in ionic v1 ? Or how can I start a pause and resume an event for this.
cordova cordova-plugins ionic-framework
Prish
source share