官术网_书友最值得收藏!

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
主站蜘蛛池模板: 藁城市| 青州市| 旺苍县| 黄石市| 齐齐哈尔市| 扶余县| 酉阳| 五常市| 开封市| 株洲市| 甘谷县| 泸水县| 区。| 孟村| 韶山市| 泌阳县| 汶川县| 册亨县| 浏阳市| 汶川县| 政和县| 镇赉县| 宁南县| 象州县| 资兴市| 化德县| 衡东县| 木兰县| 新兴县| 黄平县| 连山| 葫芦岛市| 宜良县| 同仁县| 集安市| 余江县| 马龙县| 西青区| 泰宁县| 龙里县| 萨迦县|