PushState in Android 4.0

When I use JSConsole and the window.history type, it does not contain any method for pushState. So what happened? Is it removed in Android 4.0 in the default browser, or how can I use it?

+6
source share
2 answers

Yes, this is a regression error, but they do not seem to be very interested in fixing it:

http://code.google.com/p/android/issues/detail?id=23979 vote for him.

Since most manufacturers usually customize the browser anyway, they can implement it themselves. However, I have never come across any ICS phone that fully supports api history. can't say what i was looking though.

EDIT: It is claimed to be fixed in 4.0.4, however, only in the sense that the methods exist and do what you expect from them, but the URL bar is not updated.

+9
source

The story API is well supported in Android 2.2 and 2.3, but versions 3 and 4 do not. There are no words about whether he will be returned.

read more

But I think that if you use Chrome in Android 4, you can use this feature.

0
source

Source: https://habr.com/ru/post/915914/


All Articles