全屏Web应用程序为Android [英] Fullscreen Web App for Android

查看:92
本文介绍了全屏Web应用程序为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要运行我的Web应用程序,这是我编程HTML5,在Android上全屏模式。 (隐藏状态栏,以及联系地址/导航栏)

I want to run my Web App, which i programmed with HTML5, in fullscreen mode on Android. (hide the status bar, and the adress/navigation bar)

为iOS你只写:

<meta name="apple-mobile-web-app-capable" content="yes" /> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">

但是,这并没有在Android上正常工作。

But that did not work on Android.

有很多solution's使用JavaScript的,但我尝试了所有的解决方案都不起作用。

There are a lot of solution´s with Javascript, but all solutions which I tried are inoperative.

有人知道解决办法?

推荐答案

我不认为你会发现,一个全球性的解决方案,因为不是每个人都使用默认的Andr​​oid网页浏览器(例如I preFER海豚)。

I do not think you will find a global solution for that since not everybody uses the default android webbrowser (e.g. I prefer dolphin).

面对这个事实,你将需要想尽一切肮脏的JavaScript破解给力的行为。

Facing that fact you will need to try every dirty javascript hack to force that behavior.

为什么这适用于苹果设备的唯一原因是,苹果是非常严格的关于开发自定义浏览器,每个人都坚持到默认应用程序。

The only reason why this works for apple devices is the fact that apple is very restrictive about developing a custom browser and everybody sticks to the default app.

这篇关于全屏Web应用程序为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆