javascript - Angular 网站无法在移动设备上打开

标签 javascript angularjs firebase mobile firebase-cloud-messaging

我根本无法弄清楚问题出在哪里。

我有一个用 Angular 制作的非常简单的网站,它在桌面 (Chrome) 上运行得很好,但在我的手机 (iPhone 6) 上只显示一个空白页面。

我已经尝试在本地和在线模拟它,没有任何问题。我从所有不同的站点运行了 count less 测试,他们似乎没有发现任何问题。

网站是:https://admin.marcrasmussen.dk

我知道这很不寻常,但在过去的 5 个小时里我一直在尝试解决这个问题。谁能看出我做错了什么?

最佳答案

这是我在调试您的网站时发现的。

CONSOLE

是 firebase-messagin.js 的一个问题,检查是否有更新以支持 ios 的 safari。我在问类似问题的 SO 上发现了另一个问题。 Firebase on iPad's Safari; Can't find variable: Notification Ask Question

建议关闭检测浏览器时的通知提示,避免js崩溃。

关于javascript - Angular 网站无法在移动设备上打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45795722/

相关文章:

javascript - Twitter Bootstrap Carousel - 访问当前索引

javascript - 套接字 IO 室 : Trying to use rooms in a game app (react-native) so multiple groups of people can play the game independently of each other

javascript - 跨多个选择框拆分 JSON 数组

javascript - Firebase onSnapshot 限制下载

swift - 在 Firebase 注销时刷新 View Controller

javascript - 仅在 animate.css removeClass 转换完成后运行函数

javascript - 使用 javascript 进行 OOP 编程 : Making sure that this points to the right thing regardless of how the object is instantiated

javascript - Mean stack 中的 Angular html5 模式

javascript - 请求的资源上不存在 'Access-Control-Allow-Origin' header 。因此不允许访问 Origin 'http://127.0.0.1:1111'

firebase - 在 Elixir/Erlang 中验证 Firebase ID token