问题
When I open an URL (say https://www.google.com) in a SMS in Samsung's built-in Messages app, it's opened in the in-app browser, where a blank page is immediately displayed, and stays blank instead of displaying the website.
- Is this a known Samsung/Android bug?
- Is there a known workaround?
To reproduce:
- Receive (or send) an URL in a SMS in Samsung's built-in Messages app.
- Tap on the URL in the SMS:
- The app opens the webpage in its in-app browser instead of opening it in Chrome.
- Observe a blank page is immediately displayed, and stays blank.
To work around:
- Rotate the device orientation (e.g. portrait -> landscape).
- Observe the page finally appear in front of your puzzled eyes!
What kind of page works?
None. Even this one fails to be shown:
<html>
<body>How I wish you'd show me immediately!</body>
</html>
A few more surprises:
alert('ah, ha!')
works immediately!- The CSS style
background-color
works immediately!
That is, the blank page uses the color defined in this rule. document.body.innerHtml('Show this, at least!')
doesn't help.
Known affected devices
- Samsung Galaxy S6
- Samsung Galaxy S7
- Samsung Galaxy S7 Edge
Looks like you shouldn't buy Samsung's newer devices!?
Messages in-app browser version: 51
来源:https://stackoverflow.com/questions/39110293/newer-samsung-devices-cant-display-webpages-in-their-built-in-sms-app