$state.go not work on Android 5.0.1 (s4)

Hey everyone ,

I have created an android application using ionic framework with phone-gap , right now am using pushplugin to for Push notifications , I want to change the state when a notification is received and have achieved it and got it working on emulator as well as on other devices also but unfortunately when I tested my application on Android (5.0.1) Samsung S4 “$scope.go” is not triggered can anyone suggest a workaround for this problem and let me know what am doing wrong

Here’s what am doing:

angular.module('starter', ['ionic', 'starter.controllers','ngCordova'])
.run(function($ionicPlatform,$rootScope,$cordovaPush,$ionicPopup,$state) {
  $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) {

    if (window.StatusBar) {
      // org.apache.cordova.statusbar required
  //push notifications
  var push = PushNotification.init({"android": {"senderID": "xxxxxxxxxx"},
		    "ios": {"alert": "true", "badge": "true", "sound": "true"}, "windows": {}});

		push.on('registration', function(data) {

		push.on('notification', function(data) {
		    if (data.additionalData.id) {
			// $state.go("app.detail_push",{'newId': data.additionalData.id});
		      } else {
			document.location.href = "index.html";



		push.on('error', function(e) {


.config(function($stateProvider, $urlRouterProvider) {
  .state('app.detail_push', {
    url: '/newsdetail_push/:newsId',
    views: {
      'menuContent': {
        templateUrl: 'templates/playlist.html',
        controller: 'NewsDetail'

Thanks in advance :slight_smile:

you mean $state.go, don’t you?

@bengtler yes , am so sorry typo
Yes its “$state.go

Can you please suggest any way out for this , is there something wrong that am doing in code?