# PushPlugin - Not recieving push when app is active/open

**URL:** <https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723>\
**Category:** uncategorized\
**Created:** [June 3, 2015, 9:30am UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723 "2015-06-03T09:30:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrameezraja](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mrameezraja/32/12745_2.png) [@mrameezraja](https://forum.ionicframework.com/u/mrameezraja)\
**Post date:** [June 3, 2015, 9:30am UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/1 "2015-06-03T09:30:32Z")

</div>

Hi everyone,

i am using PushPlugin for receiving push. Everything works fine when app is in background/sleep mode. But when app is active. I am unable to recieve any push notification.

i am using Cordova 5.0.0

Am i missing something?

Any help would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![biapar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biapar/32/64378_2.png) [@biapar](https://forum.ionicframework.com/u/biapar)\
**Post date:** [June 14, 2015, 5:43pm UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/2 "2015-06-14T17:43:36Z")

</div>

Hi,  
Have you some info for help you?  
Code?  
I use Cordova 5 and Push Plugin and works.

---

<div class="post-metadata">

**Author:** ![twfob](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@twfob](https://forum.ionicframework.com/u/twfob)\
**Post date:** [June 15, 2015, 7:46pm UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/3 "2015-06-15T19:46:38Z")

</div>

Need more detail to help you

---

<div class="post-metadata">

**Author:** ![nnnnnorthhhhh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nnnnnorthhhhh/32/98566_2.png) [@nnnnnorthhhhh](https://forum.ionicframework.com/u/nnnnnorthhhhh)\
**Post date:** [June 15, 2015, 10:14pm UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/4 "2015-06-15T22:14:14Z")

</div>

I know that iOS handles notifications differently if the app is in the foreground or background.

If it’s in the background, it looks like a normal push, however in the foreground you have to handle that yourself. There should be a way to set a foreground call back on a push notification, and when you do this you just need to alert the user yourself however you would like that they have a notification. The easiest way to test this is by using a Alert box but that is not recommended for production in an app because they’re really not user friendly.

---

<div class="post-metadata">

**Author:** ![mrameezraja](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mrameezraja/32/12745_2.png) [@mrameezraja](https://forum.ionicframework.com/u/mrameezraja)\
**Post date:** [June 16, 2015, 5:22am UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/5 "2015-06-16T05:22:46Z")

</div>

Issue is fixed now. Thanks all of you for reply.

---

<div class="post-metadata">

**Author:** ![jayrmotta](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jayrmotta/32/75523_2.png) [@jayrmotta](https://forum.ionicframework.com/u/jayrmotta)\
**Post date:** [September 22, 2015, 2:38am UTC](https://forum.ionicframework.com/t/pushplugin-not-recieving-push-when-app-is-active-open/25723/6 "2015-09-22T02:38:33Z")

</div>

I’m experiencing this issue on Android, the pushes are not shown if the app is open. Any updates / thoughts on that?

I’d like to have the notifications presented as notifications even with the app open, why not?
