I am working with the Ionic IO Push, and have realized via http://www.raymondcamden.com/2015/07/02/ionic-push-example-supporting-state-changes that passing $state in the payload does not result in anything if the app is active. The auto-go is only set when the app is not the main app (including closed). onNotification itself runs in all cases and will need to be what I need to handle the push for a running app. But how can one from within onNotification know that a passed $state is going to be used?
One alternative i guess is never to use $state and use my own custom fields and flags throughout. I imagine there is a more universal way. It would be nice if there were simply a second onNotificationActive or something that is an obvious different between active app pushes versus not.