# Beta 14 $ionicHistory.clearHistory() not working on Android

**URL:** <https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526>\
**Category:** ionic-v1\
**Created:** [December 20, 2014, 8:47pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526 "2014-12-20T20:47:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FumarMata](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fumarmata/32/72772_2.png) [@FumarMata](https://forum.ionicframework.com/u/FumarMata)\
**Post date:** [December 20, 2014, 8:47pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/1 "2014-12-20T20:47:53Z")

</div>

Hello,

I want my users to not to go back when they reach a certain point in the app. I have managed to hide the Back button, but on Android users always can press the physical button on the device.

According to the docs, `$ionicHistory.clearHistory()` should clean the history, but even if I can see that `$ionicHistory.viewHistory().views` only contains the current state and all previous views have disappeared, the physical button stills brings me back!

I am using Beta 14, with an app that I started building in the Creator

Am I missing something?

Thanks

---

<div class="post-metadata">

**Author:** ![Salman\_free](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Salman\_free](https://forum.ionicframework.com/u/Salman_free)\
**Post date:** [January 6, 2015, 1:06pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/2 "2015-01-06T13:06:07Z")

</div>

I am also facing the same problem in beta 14, any help will be really appreciated.

---

<div class="post-metadata">

**Author:** ![walt](https://avatars.discourse-cdn.com/v4/letter/w/71e660/32.png) [@walt](https://forum.ionicframework.com/u/walt)\
**Post date:** [January 6, 2015, 2:08pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/3 "2015-01-06T14:08:09Z")

</div>

I have the same problem among lots of others with beta 14 ☹

---

<div class="post-metadata">

**Author:** ![WidawskiJ](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/widawskij/32/7606_2.png) [@WidawskiJ](https://forum.ionicframework.com/u/WidawskiJ)\
**Post date:** [January 6, 2015, 2:32pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/4 "2015-01-06T14:32:07Z")

</div>

Same issue here… Should we post a bug report?

---

<div class="post-metadata">

**Author:** ![WidawskiJ](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/widawskij/32/7606_2.png) [@WidawskiJ](https://forum.ionicframework.com/u/WidawskiJ)\
**Post date:** [January 12, 2015, 12:29pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/5 "2015-01-12T12:29:51Z")

</div>

Is there anything new about this? It really need to be fixed, users on my app can navigate back to the log page with the back button, this is not at all an expected behavior!

---

<div class="post-metadata">

**Author:** ![Salman\_free](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Salman\_free](https://forum.ionicframework.com/u/Salman_free)\
**Post date:** [January 13, 2015, 6:31am UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/6 "2015-01-13T06:31:40Z")

</div>

I haven’t find the solution yet , we should file it as a bug I guess.

---

<div class="post-metadata">

**Author:** ![gouegd](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@gouegd](https://forum.ionicframework.com/u/gouegd)\
**Post date:** [January 18, 2015, 11:47pm UTC](https://forum.ionicframework.com/t/beta-14-ionichistory-clearhistory-not-working-on-android/14526/7 "2015-01-18T23:47:43Z")

</div>

Same issue. I solved it thanks to [this post](http://forum.ionicframework.com/t/clear-navigation-history-stack/15853/10?u=gouegd) using a new option.  
This beta14 has been disappointing. I hope the next version is more thoroughly tested.
