Phone-Gap-Push and $ionicpopup not working

I’ve got the Phone-Gap Push notification plugin working perfectly ( and I can redirect to a different view if the the app is in the foreground using data.additionalData.foreground === true, however I’d like to a confirm that the user would like to be redirected before I send them to the new view. I think it might be annoying if you get a notification while you are using the app and it takes you to another view.

Currently the popup never fires. My only other thought is to not redirect if the app is in the foreground and use the forceShow option to display the notification and rely on the user to click the notification to be routed to that view. Any thoughts?

I just got it to work using the push plugin ( in combination with the cordova-plugin-dialogs plugin (

1 Like