- Progressive Web Application Development by Example
- Chris Love
- 241字
- 2021-08-05 10:33:22
Testing the add to homescreen experience in Chrome
The developer experience would not be complete without the ability to test the add to homescreen experience. Chrome has added tooling which allows you to see how your web manifest file is interpreted and manually trigger the prompt.
Launch Chrome's developer tools by using F12 and select the Application tab. There are many choices to help you debug various aspects of a progressive web application. Under Application, there is a Manifest choice. This will display the properties of your web manifest file, including each icon. This is a quick way for you to determine if your manifest is interpreted correctly, as you can see in the following screenshot:

There is also a link to manually trigger the Add to Home Screen experience. Check out the following screenshot:

Clicking the link in the developer tools will trigger the Add to homescreen prompt. Take a look at the following screenshot:

The best way to test your experience is to deploy your progressive web app to the cloud, with HTTPS enabled. Open your site in a PWA supporting browser and do your best to adhere to the rules to trigger the add to homescreen prompt.
It is always a best practice to test your site across multiple devices. I recommend at least one iPhone, Android, and desktop with multiple browsers. Having these real user experiences available gives you confidence that your deployed PWA works as expected.
- Application Development with Qt Creator(Second Edition)
- GPS/GNSS原理與應(yīng)用(第3版)
- 物聯(lián)網(wǎng)之魂:物聯(lián)網(wǎng)協(xié)議與物聯(lián)網(wǎng)操作系統(tǒng)
- 社交電商運營策略、技巧與實操
- HCNA網(wǎng)絡(luò)技術(shù)
- 世界互聯(lián)網(wǎng)發(fā)展報告·2019
- 城市治理一網(wǎng)統(tǒng)管
- IPv6網(wǎng)絡(luò)切片:使能千行百業(yè)新體驗
- Mastering Dart
- Echo Quick Start Guide
- 物聯(lián)網(wǎng)場景設(shè)計與開發(fā)(初級)
- 物聯(lián)網(wǎng)的機遇與利用
- Getting Started with tmux
- Building RESTful Web Services with .NET Core
- 數(shù)字王國里的虛擬人:技術(shù)、商業(yè)與法律解讀