# FCM: notification not received if app is killed \[Android\]

**URL:** <https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841>\
**Category:** Ionic Native\
**Created:** [September 10, 2017, 10:45am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841 "2017-09-10T10:45:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfaster](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bfaster](https://forum.ionicframework.com/u/bfaster)\
**Post date:** [September 10, 2017, 10:45am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/1 "2017-09-10T10:45:27Z")

</div>

Hi all!

I’ve integrated the [https://github.com/fechanique/cordova-plugin-fcm](https://github.com/fechanique/cordova-plugin-fcm) plugin for receiving push notifications.  
All seems to work good when the app is in foreground/background but no notification comes when the app is killed.

I’ve opened this issue [https://github.com/fechanique/cordova-plugin-fcm/issues/371](https://github.com/fechanique/cordova-plugin-fcm/issues/371) discovering that also other guys have the same problem.

I’ve tested on my oneplus 3 and the behaviour is as described.  
Notifications arrives also when app is killed on Huawei P8 lite 2017.

The questions are: is this a common issue?  
Have you got push notifications also on killed app?  
Are you using some other plugins?

Thanks

---

<div class="post-metadata">

**Author:** ![bfaster](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bfaster](https://forum.ionicframework.com/u/bfaster)\
**Post date:** [September 12, 2017, 12:40pm UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/2 "2017-09-12T12:40:27Z")

</div>

Some help here guys?

---

<div class="post-metadata">

**Author:** ![NLFSoftware](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@NLFSoftware](https://forum.ionicframework.com/u/NLFSoftware)\
**Post date:** [May 11, 2018, 12:53am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/3 "2018-05-11T00:53:20Z")

</div>

Any news?

I have the same issue with oneSignal and FCM using Asus ZenFone 3.  
I have read that on some Posts that is related with the ROM but in my case im using the oficial Asus software so no clue at all.

---

<div class="post-metadata">

**Author:** ![vasanthb](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vasanthb](https://forum.ionicframework.com/u/vasanthb)\
**Post date:** [May 27, 2019, 5:44am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/4 "2019-05-27T05:44:41Z")

</div>

Even now, I’m facing same problem. Anybody found solution for this ?

---

<div class="post-metadata">

**Author:** ![Harikag](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@Harikag](https://forum.ionicframework.com/u/Harikag)\
**Post date:** [January 10, 2020, 10:19am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/5 "2020-01-10T10:19:53Z")

</div>

I also have same issue. how to solve this.

---

<div class="post-metadata">

**Author:** ![vasanthb](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vasanthb](https://forum.ionicframework.com/u/vasanthb)\
**Post date:** [January 14, 2020, 6:39am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/6 "2020-01-14T06:39:16Z")

</div>

Hi, It’s been a long back I had faced this issue. The root cause of this issue is some Chinese mobile manufacturers have customised Android OS and they will not allow debug app to run in background to receive the notifications. But when the app is downloaded from the store, there will not be any problem in receiving the notifications.  
So do a beta release in Android and Test Flight in iOS to confirm this. It had solved my problem. All the best.

---

<div class="post-metadata">

**Author:** ![Harikag](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@Harikag](https://forum.ionicframework.com/u/Harikag)\
**Post date:** [January 14, 2020, 9:12am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/7 "2020-01-14T09:12:47Z")

</div>

Oh, Thankyou soo much. actually am struggling for this.

---

<div class="post-metadata">

**Author:** ![Harikag](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@Harikag](https://forum.ionicframework.com/u/Harikag)\
**Post date:** [January 14, 2020, 9:14am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/8 "2020-01-14T09:14:18Z")

</div>

Just I need to use fcm plugin for push notification, in fcm.onNotification will fire automatically if app was killed also. Is my guess is correct?

---

<div class="post-metadata">

**Author:** ![vasanthb](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vasanthb](https://forum.ionicframework.com/u/vasanthb)\
**Post date:** [January 17, 2020, 8:30am UTC](https://forum.ionicframework.com/t/fcm-notification-not-received-if-app-is-killed-android/104841/9 "2020-01-17T08:30:33Z")

</div>

No, when app is in the killed state, you cannot trigger onNotification with the help of this plugin. You need either modify the native code of the plugin for Android to do it. In iOS you need use VOIP notifications.
