# Ionic Cordova Pause Event Not Triggered

**URL:** <https://forum.ionicframework.com/t/ionic-cordova-pause-event-not-triggered/121124>\
**Category:** ionic-v3\
**Created:** [February 11, 2018, 4:58am UTC](https://forum.ionicframework.com/t/ionic-cordova-pause-event-not-triggered/121124 "2018-02-11T04:58:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piashsarker](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@piashsarker](https://forum.ionicframework.com/u/piashsarker)\
**Post date:** [February 11, 2018, 4:58am UTC](https://forum.ionicframework.com/t/ionic-cordova-pause-event-not-triggered/121124/1 "2018-02-11T04:58:24Z")

</div>

Below is my source code that I am using in my app.component.ts file in the constructor.

```auto
 platform.ready().then(() => {
      console.log('Platform is ready. ');

      platform.pause.subscribe((result)=>{
        console.log("Platform Pause Event. ");
      });
      
      platform.resume.subscribe((result)=>{
         console.log("Platform Resume Event.");
      });

      });

```

Althought , Pause and Resume event triggered together when resume should call only.  
**onPause state** - nothing output .  
**onResume state** - Platform Pause Event . Platform Resume Event.

Checked with the real device and Chrome remote device.

---

<div class="post-metadata">

**Author:** ![piashsarker](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@piashsarker](https://forum.ionicframework.com/u/piashsarker)\
**Post date:** [February 11, 2018, 6:11am UTC](https://forum.ionicframework.com/t/ionic-cordova-pause-event-not-triggered/121124/2 "2018-02-11T06:11:10Z")

</div>

Found my error, I have change `KeepRunning` value to true in `config.xml` and everything is working fine .

`<preference name="KeepRunning" value="true" />`

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:51pm UTC](https://forum.ionicframework.com/t/ionic-cordova-pause-event-not-triggered/121124/3 "2021-07-19T21:51:14Z")

</div>

Closed on July 19, 2021, 9:51pm UTC


