Newer Samsung devices can't display webpages in their built-in SMS app [closed]

喜你入骨 提交于 2019-12-04 23:56:42

问题


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.

  1. Is this a known Samsung/Android bug?
  2. Is there a known workaround?

To reproduce:

  1. Receive (or send) an URL in a SMS in Samsung's built-in Messages app.
  2. Tap on the URL in the SMS:
    1. The app opens the webpage in its in-app browser instead of opening it in Chrome.
    2. Observe a blank page is immediately displayed, and stays blank.

To work around:

  1. Rotate the device orientation (e.g. portrait -> landscape).
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!