Solved

loop Back to root page Windows Mobile IE  AngularJS

Posted on 2014-12-17
4
317 Views
Last Modified: 2014-12-23
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?
0
Comment
Question by:rbhargaw
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40507858
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...
0
 

Accepted Solution

by:
rbhargaw earned 0 total points
ID: 40508250
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

https://github.com/angular/angular.js/issues/5980

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) {
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40508272
that's great. glad it worked out
0
 

Author Closing Comment

by:rbhargaw
ID: 40514577
Did research and found on my own before the experts can point to any direction
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question