# Problem with $state.go and back button on Android

**URL:** <https://forum.ionicframework.com/t/problem-with-state-go-and-back-button-on-android/39755>\
**Category:** ionic-v1\
**Created:** [December 22, 2015, 4:17pm UTC](https://forum.ionicframework.com/t/problem-with-state-go-and-back-button-on-android/39755 "2015-12-22T16:17:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blocknotes](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/blocknotes/32/93447_2.png) [@blocknotes](https://forum.ionicframework.com/u/blocknotes)\
**Post date:** [December 22, 2015, 4:17pm UTC](https://forum.ionicframework.com/t/problem-with-state-go-and-back-button-on-android/39755/1 "2015-12-22T16:17:51Z")

</div>

In a function I use: `$state.go( 'login' );` to go back to the login screen; in this condition when I push the back button on Android the app doesn’t exit. Nothing is logged in the console.  
If I push back button after the app is launched (without logging in) it works and exits.

Any idea?
