- Progressive Web Application Development by Example
- Chris Love
- 414字
- 2021-08-05 10:33:17
Creating a Home Screen Experience with a Web Manifest
Progressive web apps make a website feel like a native app. For a business stakeholder, this gives them the opportunity to use a free app store to engage customers. For real users, it means that the sites they routinely visit can be installed without any friction. Either way, it is a marketing opportunity to increase engagement by delivering a better user experience and an natural way to place their brand's icon in the customer's most important location: their homescreen.
Each platform (operating system and browser) implements a homescreen and how the application is launched in their own way, but most involve some sort of bookmarking process and opening experience driven by the web manifest file.
Chrome for Android places installed PWAs in the application shelf and allows PWAs to be managed like a native app in the device settings. Microsoft leverages the Windows Store and is formulating a free store installation process for future releases. Apple is still figuring out how they will implement these experiences, but they are building on their legacy experiences.
This chapter goes over how to create a web manifest file to describe your application to the platform and how you can programmatically prompt the user to add a PWA to their homescreen. You'll see me refer to the process of add to homescreen throughout this chapter, but it is only a name that refers to more. The term add to homescreen has sort of grown to be the de facto way of describing how PWAs are installed on the user's device.
The reality is more diverse as there is no official common specification for this process. On Android, you add application icons to the homescreen, and since this is where PWAs first saw adoption, this is how the term originated. Today, each browser and platform handles this process differently. Even unique browsers on Android vary from what Chrome has been practicing. During the writing of this chapter, Microsoft Edge required you go through the Windows Store to install progressive web apps, but even that is in flux.
As this chapter progresses, you will see how this concept applies to different browsers and platforms, and learn how to describe your PWA to the platforms using a web manifest file.
The following topics will be covered in this chapter:
- The web manifest file
- How the add to homescreen process works
- How to use legacy features to Polyfil the add to homescreen experience
- 自動駕駛網(wǎng)絡(luò):自智時代的網(wǎng)絡(luò)架構(gòu)
- 光網(wǎng)絡(luò)評估及案例分析
- 社交電商運營策略、技巧與實操
- 物聯(lián)網(wǎng)技術(shù)與應(yīng)用
- Yii Application Development Cookbook(Second Edition)
- OMNeT++與網(wǎng)絡(luò)仿真
- 面向5G-Advanced的關(guān)鍵技術(shù)
- 物聯(lián)網(wǎng)工程概論
- Web用戶查詢?nèi)罩就诰蚺c應(yīng)用
- 物聯(lián)網(wǎng)
- Python API Development Fundamentals
- 數(shù)字王國里的虛擬人:技術(shù)、商業(yè)與法律解讀
- 物聯(lián)網(wǎng)M2M開發(fā)技術(shù):基于無線CPU-Q26XX
- 物聯(lián)網(wǎng)與智慧廣電
- ReasonML Quick Start Guide