使用“apple-mobile-web-app-capable”在 ASP.NET 母版页中导致新浏览器打开
我们正在尝试使用“apple-mobile-web-app-capable”元标记创建一个 ASP.NET Web 应用程序来控制 iPad 上页面的外观。
如果我将 URL 添加到书签并添加到主屏幕,则可以正确删除地址栏,但是当我从不使用母版页的页面导航到使用母版页的页面时,会打开一个新的浏览器,地址栏重新出现在加载的页面上。我们已将其范围缩小到元标记是常见因素,即使在没有实际内容和一致内容(包括元标记)的页面上也是如此。
还有其他人找到解决这个问题的方法吗?到目前为止,我们无法通过自己的工作或搜索找到解决方案,Apple 的支持网站也没有相关的答案。
We are trying to create an ASP.NET web app using the "apple-mobile-web-app-capable" meta-tag to control the appearance of the page on an iPad.
It is correctly removing the address bar if I have the URL bookmarked and added to the home screen, but when I navigate from a page that is not using a Master page to a page that is using a Master page, a new browser is opened, and the address bar re-appears on the page that is loaded. We have narrowed it down to the meta-tag being the common factor, even on pages with no real content and consistent contents (including the meta-tags).
Has anyone else found a solution to this problem? We have been unable to find a solution so far through our own work, or searches, and Apple's support site has no answers relating to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了该问题的两种解决方案:
一种解决方案是使用 Web 应用程序内发出任何页面请求
非标准链接或表单提交的方法。
这主要意味着在用户内部使用诸如location.href之类的javascript
控件(链接/按钮),或基于自动推送新页面
服务器重定向。
另一种方法是将整个网络应用程序创建为单页下载,
每个单独的“屏幕”作为单独的显示和
根据需要隐藏。这是 jQuery Mobile 使用的方法。
我还确定启动时的自动登录重定向不会破坏网络应用程序的行为,因为一旦创建书签,所有 iPhone/iPad 网络应用程序元标记设置都会与主屏幕图标一起存储。
Found two solutions to the problem:
One solution is to make any page requests within the web application using a
method that is not the standard link or form submit.
This mainly means using javascript such as location.href within user
controls (links/buttons), or pushing a new page based on an automatic
server redirect.
The other is to create the entire web app as a single page download,
with each individual 'screen' as a separate displayed and
hidden as needed. This is the method that jQuery Mobile uses.
I also established that automated log-in redirects at start-up don't break the web app behaviour, as all the iPhone/iPad web app meta tag settings are stored with the Home Screen icon once that bookmark is created.