loop Back to root page Windows Mobile IE AngularJS

I have an AngularJS based Mobile web application. That works fine in iPhone/Galaxy. However it behaves differently in Windows 8  Phone . In Windows Mobile, we can move forward easily to 2-3 pages but when the phone's hardware back button is touched, it does not go to previous screen, instead it goes to the first login page. Why is this behavior and how do I fix it?
Who is Participating?
rbhargawConnect With a Mentor FounderAuthor Commented:
Angular version is 1.2.22 and its windows phone 8.1 with the mobile version of IE 11.

I think I have found the solution just now


Did this as mentioned in one of the comment and it worked.

As you suspected, seems like something to do with push state

if ($sniffer.history) {
Replace with:
if ($sniffer.history && ! $sniffer.msie) {
Kyle HamiltonData ScientistCommented:
what version of IE are you running in your windows phone 8? I believe it's IE10 Mobile, but not sure.

what version of angular are you using?

I don't know for sure, but i suspect it has something to do with push states not being available in IE, which is what latest angular uses to do routing.

Just some paths to explore...
Kyle HamiltonData ScientistCommented:
that's great. glad it worked out
rbhargawFounderAuthor Commented:
Did research and found on my own before the experts can point to any direction
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.