manifest.json

Why is there a white screen between the splash screen and rendered content of my progressive mobile web app and is there a way to remove it?

醉酒当歌 提交于 2019-12-23 04:31:38
问题 I have installed my mobile web app to the homescreen of my Android phone. When I start the app, the splash screen is displayed with the app icon, name, and background color defined in my manifest.json file. Right after the splash screen disappears, a white screen flickers briefly and then the expected html content is displayed. How do I get rid of this white screen? I have discovered that reducing the file size of my coin-toss.html file (which is my start page) and removing <link> tags can

How can I use php to populate a manifest.json file?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 10:46:59
问题 I have a manifest.json file that loads correctly when placed in the root directory of my wesite. Instead of it being a static file, I would like to use php variables from within my site to populate the values inside of the manifest. I can't find any information on this in the spec, and I'm not sure if it's possible. I've tried switching the name of my manifest to manifest.php and used header('Content-Type: application/json') within it. Inside my index file head: <script src="<?php echo $SITE

Manifest.json for progressive web app not working

送分小仙女□ 提交于 2019-12-13 14:03:05
问题 I am trying to get the manifest.json file working for my web app. Unfortunately it is not working right. I am receiving the following error in the chrome devtools: Line: 1, column: 1, Unexpected token. I am pretty sure that the JSON is valid but it probably has something to do with the path in the html-head. What am I doing wrong here? I am linkin it in my html like this: <link rel="manifest" href="/manifest.json"> The manifest looks as following: { "short_name": "Tabbs Web App", "name":

Apply changes to Web App Manifest on an installed PWA

一世执手 提交于 2019-12-12 10:37:34
问题 If I want to make changes to my Progressive Web App, e.g. a slight change on the app name, or update the logo, is it possible to force an update on all my users' installed apps? I tried adding "?v=2" to the manifest URL, <link rel="manifest" href="/manifest.json?v=2" /> And also forced an update on the service worker. However, it doesn't seem to apply the new changes on the installed app. I tried this on Google Chrome on Android. 回答1: Forcing the update explicitly is not possible as per the

Angular 6 application : Manifest: Line: 1, column: 1, Unexpected token

风格不统一 提交于 2019-12-11 19:47:21
问题 This error appears when the code is built and deployed to Azure. When the code is run locally using VSCode this doesn't appear in the console. Any help regarding this matter is appreciated. Manifest file code : { "name": "", "icons": [ { "src": "assets/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" } ], "theme_color": "#ffffff", "background_color": "#ffffff", "display": "standalone" } The file is referenced in the index.html as follows <link rel="manifest" href="assets

How to publish HTML5 game in Chrome Web Store

佐手、 提交于 2019-12-11 05:19:06
问题 I have my HTML5 game hosted in www.mygame.com and I followed on this doc the result show only visit website button in Chrome web store: The question is how to add my game shortcut in chrome://apps/ and when users click on game icon will link to www.mygame.com This is my manifest.json : { "manifest_version": 2, "name": "Math Booster", "description": "Try to solve basic math in short time", "version": "1.1", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "app": {

Android - PWA does not open in standalone mode with service worker

做~自己de王妃 提交于 2019-12-11 04:18:04
问题 While developing a Progressive-Web-App the following Problem occurred: Standalone mode works perfectly without including the service worker - but does NOT work with. Without Service-Worker a2hs (added to Homescreen) PWA gets correctly started in "standalone" -Mode. After adding the Service-Worker (a2hs + installed / Web-APK) PWA opens new Tab in new Chrome-Window. Chrome-PWA-Audit: login_mobile_tablet.jsf / include service worker: <script> if ('serviceWorker' in navigator) { navigator

Improved Add To Homescreen (WebAPK) icon & name for installed web app on Google Chrome not upgrading after manifest update

丶灬走出姿态 提交于 2019-12-11 03:08:35
问题 I have a website that meets all the pre-requisites for Google Chrome for Android's "improved" add-to-homescreen (A2HS) feature. I can install the app and a APK is formed and gets installed on the device and icon is available on homescreen. In the Google developer blog documentation, it is said that with the "Improved" A2HS now, it's possible to modify the manifest.json file with new icon and name after the site is visited subsequently, the installed web app's icon and name should upgrade: You

将 开源中国 在线工具 制作成chrome的扩展程序

余生颓废 提交于 2019-12-10 18:10:43
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 先看图 然后是下载地址: http://pan.baidu.com/share/link?shareid=237184&uk=2214914614 其中 OSTools.crx 是chrome浏览器扩展应用的安装包,不过安装方法是这样的: 1.chrome浏览器进入地址 chrome://extensions/ , 或者 菜单-〉工具-〉扩展程序 ,进入扩展程序管理页面 2.将 OSTools.crx 拖入管理页面,当出现“拖放以安装”松开按钮就可以了,后面有提示就点是。 而 OSTools(src).zip 就是源码了。解压完成后,把文件夹后面的(src)去掉,文件夹的名称必须与manifest.json里面的name一致。 ps:源码里面的html页面中文是通过 在线工具的编码转换来转换的,要看中文的就在源页面邮件源代码吧。 这个主要是因为我把这个原来中文的安装到同时的XP和WIN8下的时候,中文全面乱码,只要在我自己的win7上市正常的。后来FQ看了官网才知道这个是可以配置国际化文件的,但现在能用就这样吧。 源文件里面的几个相关文件基本上都做过修改,以适应chrome提供的800宽度的弹出窗。 还有就是具体怎么开发这类的chrome浏览器扩展程序,GG或者BD,亦或任意方式,您都能找的到的。 来源:

PWA - manifest attribute “display”: “standalone” not working on Android

左心房为你撑大大i 提交于 2019-12-10 17:25:15
问题 I've noticed a really weird behaviour of my PWA. I can launch it in "standalone" mode on Windows, but when I'm trying to do the same on my Android device it's ignoring the "standalone" value and opens the url in Chrome (Android 7.0, Chrome-Android v62.x). It also doesn't work in Chrome-Android Beta v63.x (relating to this post what refers to a bug in chrome 62.x ). I've checked the manifest file with the Manifest Validator and Lighthouse. Both tools validated the file and don't show me any