iPhone的&QUOT安卓相当于;添加到主屏幕"?屏幕、iPhone、QUOT

2023-09-08 08:51:14 作者:北回归线上的樱花゛

我开发移动Web应用程序。目前我有这个片段的jQuery的code。如果应用程序正在运行全屏它检查:

 如果(!window.navigator.standalone)
{
    $('#内容)之前('< D​​IV CLASS =通知>向享受移动体验发挥到极致,请点击下面的工具栏上的箭头按钮,选择< B>添加到主屏幕< / B&gt ;,然后从那里启动它< / DIV>');
}
 

我有几个问题:

确实 window.navigator.standalone Android手机上的工作? 什么是流程为用户添加一个移动Web应用程序,以他们家的屏幕?我试图寻找浏览器的截图,但没有发现任何可靠的消息来源。 是否有一个相当于iPhone的苹果触摸图标的链接元素?找到的answer这这里。 解决方案

一个Web应用程序不能直接在Android主屏幕上运行。对于它需要一些其他的自定义主屏幕。现在有两家公司谁是致力于提供一个平台,Android的运行Web应用程序的独立。

Obigo WRT 歌剧

在这里你可以让你的web应用程序作为窗口小部件,然后它会在运行时上运行。 目前obigo所提供的自定义主屏幕。其中,Opera将在应用程序中运行的Web部件。

iPhone8最终售价被纽约时报曝光 破万已成必然

I am developing a mobile web app. Currently I have this snippet of jQuery code which checks if the app is running full screen:

if ( !window.navigator.standalone )
{
    $('#content').before( '<div class="notice">To enjoy the mobile experience to its fullest, tap the arrow button on the toolbar below, choose <b>Add to Home Screen</b>, then launch it from there.</div>' );
}

I have a few questions:

Does window.navigator.standalone work on Android phones? What is the process for a user to add a mobile web app to their home screen? I tried looking for browser screenshots but didn't find any reliable sources. Is there an equivalent to iPhone's "apple-touch-icon" link element? Found the answer to this here.

解决方案

A web application can't run directly on android home screen. for that it need some other customized home screen. right now there are two companies who are working to provide a platform from android to run web application standalone.

Obigo WRT Opera

where you can make your web application as a widget and then it will run in that runtime. currently obigo have provided the customized home screen. where opera will run web widget within an application.