progressive-web-apps

Progressive web application - not honouring screen orientation

假如想象 提交于 2019-12-23 01:44:15
问题 My web app is not honouring the orientation set in my manifest.json : { "manifest_version": 2, "version": "1", "name": "My App", "short_name": "My App", "icons": [ { "src": "img/myapp/launcher-icon-0-75x.png", "sizes": "36x36", "type": "image/png" }, { "src": "img/myapp/launcher-icon-1x.png", "sizes": "48x48", "type": "image/png" }, { "src": "img/myapp/launcher-icon-1-5x.png", "sizes": "72x72", "type": "image/png" }, { "src": "img/myapp/launcher-icon-2x.png", "sizes": "96x96", "type": "image

How to Manage state between tabs in Flutter App

风格不统一 提交于 2019-12-22 19:30:16
问题 I am using TabBar in my application where I need to get Input in first tab and show output based on some calculation on other tab. I am able to get input in first tab but when I click on second tab, my state is lost. I am not sure if I have to make it a Stateful widget at root level. I am relatively new in Mobile App. Can someone help me out here? EDIT: Now I am able to achieve what I said above, but when I am trying to access the list of items from first tab, it throws null exception in

Multiple PWAs in the same domain

Deadly 提交于 2019-12-22 11:27:17
问题 Is it possible to host multiple PWAs under same endpoint. Say, I have three different PWAs Under root and then root should host these 3 PWAs in such a way that when I switch to any other apps via link or menu it shouldn't open in different window. Currently, it is getting opened in different window as web app whenever, I am clicking on different app. Thanks, Rahul 回答1: You may refer with this thread. It stated that you can accomplish this with scoped apps. Update your manifest files to

Cookies not sent with request for Web App manifest.json

对着背影说爱祢 提交于 2019-12-22 11:27:11
问题 I am trying to enable PWA on a web site that requires authentication (login tokens managed via Cookies).. I am trying this out locally (http://localhost:4502) and login (and am issued the login cookie) for the web site. The problem is when the Web App manifest is requested, no Cookies are sent on the request, so the request is not authenticated. <link rel="manifest" href="/content/site-x/manifest.json"> As you can see the manifest is served off the the same host/scheme as the web page that

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

How to use Laravel Mix and WorkBox?

空扰寡人 提交于 2019-12-22 09:39:52
问题 I'm trying to build a PWA for my app; and have spent almost 48 hours trying to figure out how to make use of Workbox with Laravel Mix. What's ironical is that Google says Workbox is meant to make things easy! Buh! Okay, so far I've figured out that - I will need to use the InjectManifest Plugin because I want to integrate Push notifications service in my Service Worker I have no clue how to specifiy the paths for swSrc and swDest . What code should go into my webpack.mix.js and whether I

Progressive web app implementation in ASP.NET MVC [closed]

早过忘川 提交于 2019-12-22 08:57:33
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . I'm researching progressive web apps, and i was wondering if it's possible to integrate this technology with existing ASP.NET MVC web applications. I don't find any example of this integration, only in combination of javascript frameworks that render HTML like angular, knockout etc. Also, is it

Service worker not run in offline mode using nodejs server

送分小仙女□ 提交于 2019-12-22 08:55:54
问题 i've been create new project PWA. when i develop not using node js for (socket.io running) just running in offline like i expected and needed. but when integration with nodejs server. when go online the app running well not get any problem. but when i change to offline mode my service work not run but show offline browser. this my code node js server: var express = require('express'); var app = express(); var server = require('http').Server(app); var io = require('socket.io')(server); var

Web app feels less responsive when added to iPhone's home screen

懵懂的女人 提交于 2019-12-22 07:59:02
问题 This Angular 2 app feels less responsive when added to the Home Screen on the iPhone that when running inside Safari. I made it web app capable by adding this to index.html: <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-title" content="Angular NavTabs"> If you have a couple of minutes, check it out on Github Pages. Switching between tabs feel very responsive when it runs in Safari. However, it feels lagging when the app is launched from the Home

iOS Standalone PWA input capture

久未见 提交于 2019-12-22 07:09:00
问题 I think we found a regression in iOS 13.2/13.3 in regard to PWAs running in standalone mode. Since on iOS PWA cannot access getUserMedia() we rely on the capture attribute on the HTML5 input tag to let the user take a picture and send it to a server. Our code looks like this: <div class="camera-upload"> <input type="file" class="hidden" name="uploadPhotoInput" accept="image/*" capture="environment" (change)="onTakePhoto($event)"> <button type="button" class="btn btn-primary">Take photo<