With the release of iOS 11.3, Apple quietly supported several new technologies behind the PWA concept: Service Worker, Web App Manifest, so let's take a look at how they work, what they can do, what their challenges are, and what else you should know if you have already released a PWA application. If you don’t know what PWA is before reading this article, I can tell you that it does not have a unique and accurate definition, but what I can tell you is that it is an App created with Web technology that does not require packaging or signing, can work offline, and if you want, can be added to the desktop, and it looks like other applications. On most platforms, PWAs are not required to be installed from the App Store, except for the Edge browser and Windows 10, which require PWAs to be in their app stores. So, you guessed it, you can now install apps on iOS without going through the App Store. This is probably one of the reasons why Apple didn’t mention this new capability directly, they probably didn’t want to upset users and didn’t even mention this technology in the release notes for Safari. Isn’t Apple the creator of PWA? To be honest, the Google Chrome team created the term PWA, but the project was originally proposed on Safari in the original iPhone OS. In 2007, Steve Jobs announced "one more thing" at WWDC: how to develop applications on the original iPhone, surprisingly, it was Web App. The App Store was not in the original plan at that time, and the native SDK was not available in the first year of the iPhone's release. From Apple's perspective, even today, PWA is just a "webapp on the home screen", and the icon is called a WebClip.
https://link.zhihu.com/?target=https%3A//www.youtube.com/watch%3Ftime_continue%3D651%26v%3DEFGltzFSK-c 11 years ago, this idea didn't get much traction and Apple forgot to update this capability, so for 10+ years, this feature was buggy and unstable. Then, a few years later, other platforms implemented this idea, including the MeeGo browser on the Nokia N9 and Android Chrome. Chrome helps improve and implement these technologies to provide a better experience for users, mainly in the Service Worker and Web App Manifest specifications. As of today (March 30, 2018) iOS 11.3, Apple has followed Chrome, Firefox, Samsung Internet, UC Browser and Opera to support these two odd specifications. Mac version of Safari also supports Service Worker, and Web App Manifest support is also underway this year. Wait, so these apps didn’t pass the App Store’s quality tests, right? Yes, you guessed it right again. But PWA can only run in browsers or other web platform security policies at present, which means that you can "publish" apps that are not approved in the App Store, such as internal apps for your company's employees (including approved content), but you can't use some Native APIs, such as Face ID on iPhone X, or ARKit augmented reality, or at least, you need to wait for the web platform to support these new APIs. PWAs can run in Safari as a regular website or in standalone mode (without the address bar and other features of Safari), just like other applications in the system. The capabilities of PWA in iOS On the iOS web platform, you can call the following APIs:
What are the limitations compared to iOS native apps? PWA can only store up to 50Mb of offline data and files
What works on Android but not on iOS? On Android, you can store more than 50Mb of data and files
What works on iOS but not on Android?
How to install PWA on iOS? This is one of the important challenges on iOS, because iOS Safari does not have any prompts or guides for users to add PWA. Android has a guide called Web App Install Banners, so users need to visit your site in Safari first, then manually click the Share icon, and then click "Add to Home Screen". During the whole process, there is no indication that this is a PWA. Other browsers installed from the App Store, such as Chrome, Firefox, Brave, or Edge, cannot install PWAs or use Service Workers. Once it’s installed, it will look like any other icon on your home screen, although it won’t have the 3D Touch menu. If you install the same PWA again, there will be another identical icon pointing to the same PWA (with any luck, the installed files will be shared). In addition, many Web Apps have a prominent position to guide users to download and install native apps from the App Store, which is also displayed in PWA. This is actually a harm to the user experience, such as Tinder: I already have a PWA site, can iOS users use it right away? After users upgrade to iOS 11.3, they can install your PWA. No additional configuration is required for iOS. Every PWA can be installed, but this does not mean that everything will be the same as you think. If you’re reading this, you may have read my article “Cupertino, we’re in trouble” when iOS PWAs were still in beta. The bad news is that most of the problems encountered during the beta period still exist after the release of iOS 11.3. What's not working properly?
What to Remember?
If you find any other bugs with PWAs on iOS, please comment below and I’ll file a bug report with the WebKit team. If you want to get updates on this post, follow me on Twitter @firt. If you’re in the Bay Area in June, check out my step-by-step PWA training where we’ll build a PWA that covers what most people are missing on other platforms, as well as how to survive on iOS. If you find any other bugs with PWAs on iOS, please comment below and I’ll file a bug report for the WebKit team. If you want to get the latest updates on this post, please follow me on Twitter @firt. If you’re in the Bay Area in June, please check out my step-by-step PWA training where we’ll build a PWA that covers what most people are missing on other platforms, as well as how to survive on iOS. |
<<: Implementing user-unaware background crash handling in Android
>>: iOS 11.3 can fix the frequency reduction problem, but these models do not have
From the feedback from sales staff of major IDC s...
Maximize the acquisition of target users Acquisit...
Since iOS12, an additional app called "Short...
This article includes: concept Pros and Cons Anal...
On every day when people can legitimately grab re...
It is said that a good title is half the battle o...
On July 29, the State Administration of Taxation ...
Beautiful, exciting, cute, warm, awesome, fun, an...
The new version of the Yin Yue Tai APP has a very...
During the operation process, great emphasis is p...
Cai Sen Technology Class Video-Sencai Technology ...
Let me ask you directly, have you ever encountere...
Yun Jinsong's 9-lecture audio resource introd...
Our lives have become increasingly dependent on t...
How to promote Kuaishou live streaming ? In 4 yea...