# Ionic 4 platform pause resume listener not working

**URL:** <https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637>\
**Category:** Appflow\
**Created:** [March 21, 2019, 9:50am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637 "2019-03-21T09:50:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadkam](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@ahmadkam](https://forum.ionicframework.com/u/ahmadkam)\
**Post date:** [March 21, 2019, 9:50am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/1 "2019-03-21T09:50:17Z")

</div>

I want to detect device pause and resume events in my page.  
I used platform pause and resume methods and java script methods (  
document add event listener pause and resume ) But these ways not worked for me.  
can anyone help me to do this in ionic 4, please ?  
Thank you

---

<div class="post-metadata">

**Author:** ![jjo422](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jjo422](https://forum.ionicframework.com/u/jjo422)\
**Post date:** [April 14, 2019, 3:18am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/2 "2019-04-14T03:18:11Z")

</div>

I am having this issue on the simulator, I will test on the device as well.

---

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [April 16, 2019, 12:34am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/3 "2019-04-16T00:34:23Z")

</div>

Are you using Capacitor? They don’t work yet in Capacitor.  
There is a solution for that that may help you.  
Doesn’t help me unfortunately.  
See the link within my post for Capacitor solution.

> [@Platform Pause Resume not firing in Capacitor](https://forum.ionicframework.com/t/platform-pause-resume-not-firing-in-capacitor/161624):
>
> Does anyone know when this will be resolved? Or an alternative? I’m starting to regret using Capacitor for this app. I may have been a bit early in adopting. I can 't use capacitor plugins either as I am on an old webview version (44). Although I can use some native plugins.

---

<div class="post-metadata">

**Author:** ![ahmadkam](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@ahmadkam](https://forum.ionicframework.com/u/ahmadkam)\
**Post date:** [April 16, 2019, 6:34am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/4 "2019-04-16T06:34:23Z")

</div>

based on the platform class documentation pause and resume are not firing  
in browsers. documentation is here =\>  
The pause event emits when the native platform puts the application into the background, typically when the user switches to a different application. This event would emit when a Cordova app is put into the background, however, it would not fire on a standard web browser.

---

<div class="post-metadata">

**Author:** ![ranjithreddy](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@ranjithreddy](https://forum.ionicframework.com/u/ranjithreddy)\
**Post date:** [April 17, 2019, 8:43am UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/5 "2019-04-17T08:43:38Z")

</div>

i think it is useful for you

this.platform.pause.subscribe(() =\> {

this.getLiveSession(); //i am calling this method while app running in background or sleep

});

---

<div class="post-metadata">

**Author:** ![ollydix](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@ollydix](https://forum.ionicframework.com/u/ollydix)\
**Post date:** [November 8, 2020, 12:04pm UTC](https://forum.ionicframework.com/t/ionic-4-platform-pause-resume-listener-not-working/159637/6 "2020-11-08T12:04:34Z")

</div>

Doesn’t work in the browser or on Ionic React.
