Publish with new update - flutter

I created a project in Flutter Web + Lazy Loading.
After updating project I'm running: Flutter Build Web
Then I put the project in the service of Vercel.
When I access the site I noticed that it is not downloading the new updates and generating blank pages when closing the site and opens again works.
Do I need to define the new version somewhere in the project and run: Flutter Build Web and post again to avoid this problem again?
By accessing the site all files are downloaded again by preventing the cache from undermining the user experience.

Related

how to migrate flutter existing app to web

I have designed a mobile application using flutter, I have seen that it is compatible with the web and I would like to know how to migrate my already designed application to the web environment, I know that I must take into account the compatibility with the dependencies that I have used and already reviewed.
At the moment I have carried out the following process, but all it does is create a folder with few elements that when executed, the browser opens with a blank page, the flutter logo and a blue appbar. What procedure am I missing?
flutter config --enable-web
flutter create.
flutter run -d chrome

How to deploy Flutter Web to my own server?

I've just created a flutter web application and now I am ready to deploy it. Looking at the docs it looks like I need to use Firebase Hosting? But I want to host the app on my own server. I tried copying the web directory from Build but when I go to the path I get a blank screen on web. How do I deploy it correctly? Or is it just simply not possible without Firebase?
First you need to compile the application.
In a terminal, command prompt or Powershell, go to the root directory of your project.
From there run a build:
flutter build web
This will create a new directory inside your project.
c:\your-project-folder\build\web
Copy everything that is in the web folder to wherever you want to publish / host your application.
Your application is bundled up into a main.dart.js file.
An index.html is also in that directory. You should be able to run your Flutter web app by visiting that index.html.
All the instructions for building a Flutter application for web platform is here.

Changes not reflecting on flutter web deploy after firebase project owner changed

Using flutter web I created a web app that can connect to firestore and deployed using firebase hosting. Everything works fine until I change the owner from myself to another. I can still use firebase deploy using the other(2nd) account, but the changes are not reflecting when opening the app url. Is there any need for additional configuration or its a bug? Thanks for any answer
You should be able to fix by doing a hard cache reset on Chrome, by using the following key
combination: ctrl + shift + r.
Or, you can delete the build/web folder and build your project for web again.

Installed PWA is not updating

I have developed a PWA using Quasar framework. I didn't change anything in service-worker or manifest file, just going with defaults.
I have hosted the build on AWS S3 facing a cloud-front distribution.
When I push the updated build on S3 and invalidate the cloud-front distribution cache. The user who opens the website via browser gets an updated version. but users with installed PWA never get the updates unless they open the website again in the browser.
I have planned to update changes every other day. what is the best way that whenever I push change installed PWA gets updated instantly?

I want to update the existing logo for my PWA app

When I am updating the logo of the PWA app the icon is not getting updated for the previously installed applications. However for newly installed apps I am getting the correct logo.
Did you try updating the new image icon in manifest.json & then showing a prompt to users to refresh the PWA?
You can try to have a look at the documentation for Android APK (from the question is not clear your target device: web or mobile).
Chrome will periodically compare the locally installed manifest against a copy of the manifest fetched from the network. If any of the properties in the manifest required to add the PWA to the home screen have changed in the network copy, Chrome will request an updated WebAPK, reflecting those new values.
This feature is not yet available for desktop, but planned in a future release.
Do you use any framework (Angular, React) to build your PWA? If you want to read more details about how to install an app on the homescreen or the web manifest properties, you can have a look here.