Cordova GCM push notification not working after restarting the app

I implemented the push notifications using GCM. Push notification works fine in Foreground and Background if I make user login to app and call $cordovaPush.register and $cordovaPush:notificationReceived after user login.

But, When I remove the app from Background and restart it. I receive the push notification but when I click, it doesn’t shows the alert.

I implemented the code in app.js run method and calling it from UserCtrl(for login) and from HomeCtrl (for app load).