Using Vue.js to create a fully-featured PWA
Learn how to make your Vue.js app a PWA with a single line of code. Get a universal installation link. Send push notifications. Make your PWA work offline. Manage your service worker and app manifest.
Getting started with Vue.js & Progressier
1Create a Progressier account
Click Get started at the top of this page, and select Vue in the dropdown menu. Then create a Progressier account if you don't have one yet.
2Add the script tag to your HTML
Add our script tag to the HTML of your Vue.js app before the closing
</head>tag. The full snippet includes your App ID and is available in the dashboard after logging in.
3Import our service worker file
In the Progressier dashboard, download our service worker file. If your Vue.js app already has a service worker, you can instead import it using
4Install your PWA
Progressier makes your Vue.js installable across compatible devices and browsers (with custom instructions on iOS), generates an install page, and gives you access to PWA promotion widgets.
5Send a push notification
Progressier prompts users to allow push notifications in compatible browsers, and enables you to send push notifications from our dashboard and/or server-side API. You can even connect your own user data to send personalized push notifications.
Which PWA features does Vue.js support?
Your Vue.js PWA is installable on Android tablets or smartphones in a click.
Let users add your Vue.js PWA to their home screen with our custom iOS install prompt.
Your PWA can be installed from Chrome and Edge to your users' Desktop and/or Taskbar.
Get your app installed on macOS from Chrome — Progressier walks users through installing your PWA to their Docks.
Chrome OS Installation
Progressier is also a great solution to get your app installed on Chrome OS.
A unique page that helps users install your Vue.js PWA on their devices with custom instructions for each compatible platform.
Original Domain Installation
Your app is directly installable right from your own domain
Web App Manifest
Progressier creates an app manifest with the name, logo, theme color and display preferences of your PWA.
A service worker is a file that runs independently from the main browser thread and that allows to define how to cache and refresh resources. It's also the mechanism by which push notifications can be delivered to a user who's not on your site. Progressier lets you customize the service worker in details without having to write code.
Cache Static Resources
Progressier has a built-in caching strategy builder that lets you configure how each type of resources should be cached and refreshed. No code to write.
If you have full control over all the resources required for your website to work, you can make your site work 100% offline in Progressier without writing a single line of code.
Notify all your users of news in your app with our dashboard and/or API. Progressier manages all user push subscriptions for you.
Send notifications to any particular user manually or programmatically. All your need is their email, their user ID or any other information that identifies them in your system.
Connect User Data
Connect your own user data (emails, account type, etc). So when a user authorizes push notifications in your Vue.js PWA, their data is also saved along with it.
In-App PWA Promotion
A set of tools that allow you to promote installation of your PWA within the body of your app, including custom install buttons and floating action buttons.
Let users know when they lose their Internet connection.
Push Prompt on Standalone
Prompt users to allow push notifications right after they have installed your app. Less intrusive = better conversion rate.
Install & Push Analytics
Progressier tracks installs of your Vue.js PWA over time. Also tracks push subscriptions.
Programmatic PWA Creation
Create Vue.js PWAs programmatically with our API.
Google Play & App Store Upload
With our PWABuilder integration, you can list your Vue.js PWA on Google Play or the App Store.
Why choose Vue.js and Progressier for your PWA?
Progressier automatically generates a service worker and app manifest for your Vue JS PWA. You also get access to a complete push notification solution, optimized PWA promotion widgets, and an iOS splash screen generator, as well as granular push and install analytics.
How long does it take to create a PWA with Vue JS?
With Progressier, creating a PWA with Vue.js takes 4 minutes or less.
Is Vue JS better than React for a PWA?
Both frameworks provide solid solutions for creating a PWA. Vue JS is slightly more accessible to PWA beginners.
Can I make a Vue JS PWA work offline?
Yes! With Progressier, you can configure caching strategies and make your Vue.js work completely offline.
What's the best caching strategy to use in a Vue.js PWA?
Stale-While-Revalidate is generally the best strategy to use for most use cases as it improves load times without the risk of users getting stuck with stale resources.
How can my Vue JS PWA send push notifications?
Progressier provides you with a solution for sending push notifications from your Vue.js app without having to write a single line of code.
What are the requirements for creating a PWA with Vue?
You can create a PWA from your Vue.js app as long as it's hosted on domain secured by a SSL. Your Vue app must also have an app manifest and service worker with a listener to the fetch event.
When should I prompt users to install my Vue JS PWA?
You should ask users to install a PWA after they've displayed sufficient engagement with your app, e.g. after they signed up or placed an order.
Can I upload a Vue PWA to the app stores?
Yes! With Progressier and PWABuilder, you can upload your Vue.js PWA to Google Play and/or the Apple App Store in 5 minutes or less.
Ready to turn your Vue.js app into a PWA?
Try our PWA builder free of charge for 14 days. No credit card required.Get started See plans