简体   繁体   English

添加到主屏幕后,iPhone WebApp无法正常工作

[英]iPhone WebApp not working properly after adding to home screen

Before I present the issue, I think it's important to tell you that I'm not an iPhone user and have little knowledge on how to operate with one. 在提出问题之前,我认为重要的是要告诉您我不是iPhone用户,并且对如何使用iPhone几乎一无所知。 That being said, here's the issue we are facing: We have this web app that works fine on all major smartphone's browsers. 话虽如此,这就是我们面临的问题:我们拥有一个可在所有主要智能手机浏览器上正常运行的Web应用程序。 Recently we figured that Chrome and Safari lets you add web sites to the home screen. 最近,我们发现Chrome和Safari可让您将网站添加到主屏幕。 The end result is like a hybrid app with no browser URL and all. 最终结果就像一个没有浏览器URL的混合应用程序。 On Safari, though, we noticed that weird things happens. 但是,在Safari上,我们注意到发生了奇怪的事情。 Some features just don't work and sometimes, caching doesn't recycle even after clearing it. 某些功能只是无法使用,有时,即使将其清除,缓存也不会回收。 We also tried to remove the icon and create it again, but that didn't solve the issue... 我们还试图删除该图标并再次创建它,但这并不能解决问题...

My question is: Is there an interface to "communicate" with this "hybrid app"? 我的问题是:是否存在与该“混合应用程序”进行“通信”的界面?

If somehow Safari keeps logs or any relevant information regarding this icon-to-home-screen feature, it would help greatly understand the issue. 如果Safari以某种方式保留了有关此图标到主屏幕功能的日志或任何相关信息,则将有助于极大地了解此问题。

If by "communicate" you mean inspect html content and debug javascript code, then you can enable the Web Inspector and use Safari on your Mac to do so. 如果通过“交流”是指检查html内容并调试javascript代码,则可以启用Web Inspector并在Mac上使用Safari。

Here are the instructions: https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.html 这是说明: https : //developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM