Trigger an event on receiving push notification with parse and ionic framework

I am working on a simple blog app using parse to receive push notifications.

Base on my installation i can successfully receive the notifications and the problem i am having is trigger an event on the notification when the app is launched.

I am using parse push and codova parse push

my installation code is

var app1 =  angular.module('starter', ['ionic', 'starter.controllers', 'starter.posts', 'starter.filters', 'starter.truncate']);

app1.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
      parsePlugin.initialize('xxx', 'xxx', function() {
          alert('success');
      }, function(e) {
          alert('error');
      });

      parsePlugin.getInstallationId(function(id) {
          alert(id);
      }, function(e) {
          alert('error');
      });
  });
})

This aim of the call back is to send the user to the page from the url sent in the notifications json

{
 uri_slug: 'page-title'
}

The app will redirect to the show page based on the url slug.