What is a Progressive Web Application
Progressive Web Applications are web apps that work in a web browser, use modern technologies and deliver an app-like experience for users. Moreover, since PWAs work within a browser, users can access PWAs using the most popular browsers: Chrome, Safari, Firefox, and Edge. PWAs can be installed on m
More about PWAs:
What are the requirements for PWAs:
- Progressive - work for all users on different types of OS and browser versions;
- Responsive - responsive on the desktop, mobile, and tablets;
- Offline - work offline or with a poor internet connection;
- Safe - served over HTTPS;
- Push notifications - receive push notifications; and
- Fast - take no longer than 3 seconds to load.
The best examples of PWAs are:
1) Twitter Lite
What are the differences between PWAs and native apps:
What to choose: PWA or Native app?
It depends on the project and business needs. Here is why you would need to choose building a PWA:
- If you want your app works on desktop. PWAs work in the Chrome browser within Windows, Mac, and Linux.
- If you don’t need your app to support location - based push notifications. PWAs do not support receiving location-based push notifications, but standard push notifications work the same as on native apps.
- If you don’t want to publish your app to the Google and Apple stores and pay extra money for publishing. PWAs do not need to publish to the app store.
- If you want your app to be available for Android and iOS users, and you don’t want to build native Android and iOS apps. PWAs are available on iOS and Android platforms within Safari and Chrome.
- If you want to save money and time. You need to have only one development team for building a PWA instead of having two separate teams for creating native Android and iOS apps.
PWAs testing strategy. What should be tested?
1) Test PWA installation on desktop devices using Chrome 70+ browser.
In order to install PWA on a desktop, you need to:
- Open the PWA URL in Chrome 70+ (for example, https://mobile.twitter.com/home).
- Click on “More” menu in the top right corner.
- Click on “Install PWA...”.
- The app icon should be added and you should be able to open the web app.
- Here is an example of Progressive Web App for desktop:
2) Test PWA installation on mobile devices using different types of browsers. Test device: iPhone 6, iOS
- Open the PWA URL in Safari or Chrome (for example, https://mobile.twitter.com/home).
- Tap on “More” menu”
- Tap on “Add to Home screen”;
The app icon should be added to the home screen and you should be able to open the web app.
Here is an example of Progressive Web App for mobile:
PWAs for desktop supported only in Chrome 70+. As for mobile and tablets, PWAs supported in Chrome 40+, Safari 11.3+, Firefox 66+. Use the newest and older browser builds for testing Progressive Web Apps. Generally, you need to verify that the main functionality and design are the same on specified browsers and that there are no specific browser issues.
Test PWAs on all desktop and mobile platforms and ensure that there is no difference in the functional experience of the PWA on different OS version and platforms, such as:
- Chrome OS.
Test how the PWA works offline or if the internet connection is poor. The web app should use and display the cached data. All taken data in offline should be synced properly after the connection is remade. PWAs should work offline the same as a native mobile app.
Test different types of push notifications: regular and scheduled (ensure that receiving push notifications are enabled in the app). Make sure that the regular and scheduled push notifications (except location-based) are received on the PWA. Verify that text and attached media files are displayed properly. Ensure that the notification pop up appears when a push notification has been received.
Test the PWA on different screen sizes and devices: mobile (Android/iOS), tablets, and laptops. The PWA app should be responsive to small, medium, and large screens. There should not be any UI issues related to the screen size.
Verify that the site has been served over HTTPS and make sure that SSL certificate is not expired. Use an SSL certificate checker or analyzer, such as comodoca: https://sslanalyzer.comodoca.com
Verify that the main functionality works as expected and matches acceptance criteria.
Therefore, PWAs have specific cases to verify compared to native apps, and testers should take into consideration the differences when performing verification.
To sum up, the popularity of PWAs is increasing very fast. A lot of successful and popular companies, such as Forbes, Pinterest, and Twitter, are focused on developing PWAs. PWAs give users an app-like experience with a lot of benefits. Users do not need to search for an app in the app store, tap on install and wait for the download, then open the app;, they only need to open the PWA URL and add it to their home screen. In addition, all pages in PWA have a direct link which can be shared and users will have direct access to it. Moreover, customers do not need to go to the app store to update the app - PWA is always up-to-date. Thus, having a PWA gives the business an opportunity to reduce costs on developing an app and develops a web application that is supported on the most popular devices and OS versions.