# IonViewWillEnter not triggered from app reopened from background

**URL:** <https://forum.ionicframework.com/t/ionviewwillenter-not-triggered-from-app-reopened-from-background/141641>\
**Category:** ionic-v3\
**Created:** [September 13, 2018, 12:31pm UTC](https://forum.ionicframework.com/t/ionviewwillenter-not-triggered-from-app-reopened-from-background/141641 "2018-09-13T12:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donnyx90](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/donnyx90/32/108737_2.png) [@donnyx90](https://forum.ionicframework.com/u/donnyx90)\
**Post date:** [September 13, 2018, 12:31pm UTC](https://forum.ionicframework.com/t/ionviewwillenter-not-triggered-from-app-reopened-from-background/141641/1 "2018-09-13T12:31:19Z")

</div>

I am trying to trigger a function when a user has minimized app in the background and then reopens it. How can I identify when the user has come back to app after being minimized in the background? I tried **IonViewWillEnter** but this seems to not trigger from background mode

---

<div class="post-metadata">

**Author:** ![STRINIX](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@STRINIX](https://forum.ionicframework.com/u/STRINIX)\
**Post date:** [September 13, 2018, 1:21pm UTC](https://forum.ionicframework.com/t/ionviewwillenter-not-triggered-from-app-reopened-from-background/141641/2 "2018-09-13T13:21:05Z")

</div>

That’s beyond Ionic’s scope basically. Javascript doesn’t know when an app is reopened.  
You could use Cordova Resume though I think, not sure how you’d implement it though.

[http://docs.phonegap.com/en/4.0.0/cordova\_events\_events.md.html#resume](http://docs.phonegap.com/en/4.0.0/cordova_events_events.md.html#resume)

---

<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:17pm UTC](https://forum.ionicframework.com/t/ionviewwillenter-not-triggered-from-app-reopened-from-background/141641/3 "2021-07-19T21:17:26Z")

</div>

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


