pwa 問題
為什么需要PWA并不成問題。 讓我們看看為什么您可能不需要它 (Why you need a PWA is not in question. Let’s see why you may NOT need it)
My inbox has been filled with questions regarding PWAs after my last two articles.
在上兩篇文章之后,我的收件箱中充滿了有關PWA的問題。
My “Practical Tips on Progressive Web App Development” shared the actual advantages of the PWA technology, and my “Progressive Web Apps vs Native” further strengthened many people's belief that a progressive web app is exactly what they need.
我的“ 漸進式Web應用程序開發實用技巧 ”分享了PWA技術的實際優勢,而我的“ 漸進式Web應用程序與本機 ”進一步加強了許多人的信念,即漸進式Web應用程序正是他們所需要的。
I am exceptionally happy that I managed to convince them that PWAs are the future of web apps. I support the PWA technology as a path that the software development industry should take in the future. But progressive web apps are not a panacea, not a one-size-fits-all solution.
我非常高興能夠說服他們PWA是Web應用程序的未來。 我支持PWA技術,這是軟件開發行業將來應該采用的方法。 但是,漸進式Web應用程序不是萬能藥,不是萬能的解決方案。
Since I have already explained what PWA means and why you need a PWA, today, I am going to finish the job and show why you may NOT need a PWA.
既然我已經解釋了PWA的含義以及為什么需要 PWA ,那么今天,我將完成工作并說明為什么您可能不需要 PWA 。
Making the choice between using and not using PWA is easier than you assume. Just answer four simple questions and you will see the right path yourself.
在使用和不使用PWA之間進行選擇比您想像的要容易。 只需回答四個簡單的問題,您就會自己看到正確的道路。
1.您有現成的發展嗎? (1. Do you have any ready-made developments?)
The speed and simplicity of the progressive web app development have been mentioned among the major benefits of PWAs. However, this advantage can be negated by the fact that you already have some ready-made developments for a mobile app.
在PWA的主要好處中,提到了漸進式Web應用程序開發的速度和簡便性。 但是,您已經為移動應用程序進行了一些現成的開發,因此可以抵消這一優勢。
Converting a ready-made mobile app to a progressive web app cannot be done with a few simple clicks. Instead, a progressive web app has to be developed from scratch. If you had already gone through the lengthy and complicated process of native app development, why would you throw it out and start everything from the beginning?
只需單擊幾下鼠標,便無法將現成的移動應用程序轉換為漸進式Web應用程序。 相反,必須從頭開始開發漸進式Web應用程序。 如果您已經經歷了漫長而復雜的本機應用程序開發過程,那么為什么要扔掉它并從頭開始一切呢?
Surely, your mobile app can be outdated or inefficient. In this case, you have to choose whether to revive it with the help of a mobile app development company or to build an entirely new application using the PWA technology.
當然,您的移動應用可能會過時或效率低下。 在這種情況下,您必須選擇在移動應用程序開發公司的幫助下恢復它還是使用PWA技術構建一個全新的應用程序。
For instance, Pinterest – one of the brightest examples of companies that implemented PWA – decided to choose both options. They have developed a progressive web app but did not forget about the traditional mobile application either.
例如, Pinterest是實施PWA的公司中最杰出的例子之一,因此決定選擇這兩種選擇。 他們開發了一個漸進式Web應用程序,但也沒有忘記傳統的移動應用程序。
Key idea: The PWA approach is a great solution if you have no ready-made developments. If you already have a native or cross-platform mobile version of your app, it will be easier and more productive to finish those rather than build a new application from scratch.
關鍵思想 :如果您沒有現成的開發,則PWA方法是一個很好的解決方案。 如果您已經擁有應用程序的本機或跨平臺移動版本,則完成這些操作將比從頭開始構建新的應用程序更容易和更有效率。
2.您打算只專注于移動設備嗎? (2. Do you plan to focus on mobile devices only?)
The idea of PWA features is to improve the experience of a user accessing a web page from a mobile device. Until the PWA technology was introduced, the businesses willing to target both web and mobile had two options:
PWA功能的想法是改善用戶從移動設備訪問網頁的體驗。 在引入PWA技術之前,愿意同時針對Web和移動設備的企業有兩種選擇:
- to adapt a web page to mobile devices 使網頁適應移動設備
- to develop a mobile app from scratch 從頭開始開發移動應用
The first option is clumsy and inconvenient from the perspective of a user. The second option is resource-consuming from the perspective of a business.
從用戶的角度來看,第一種選擇是笨拙且不便的。 從企業的角度來看,第二種選擇是消耗資源。
The advancement of PWAs brought the Golden Mean: convenience for the user and efficiency for the business. If you do not plan to enter the web or desktop niche but choose to focus solely on mobile apps, there is no need to build a PWA.
PWA的進步帶來了黃金分割:給用戶帶來便利,為企業帶來效率。 如果您不打算進入網絡或臺式機市場,而是選擇只專注于移動應用程序,則無需構建PWA。
Surely, when developing progressive web apps, you win because you're developing one application for both Android and iOS. However, this is exactly what you can achieve with cross-platform development with Ionic, Cordova, or React Native. ?
當然,在開發漸進式Web應用程序時,您會成功,因為您正在為Android和iOS開發一個應用程序。 但是,這正是使用Ionic,Cordova或React Native進行跨平臺開發所能實現的。
Meanwhile, Pinterest has developed a progressive web app to augment their already existent web platform and mobile app.
同時,Pinterest開發了一個漸進式Web應用程序,以增強其已經存在的Web平臺和移動應用程序。
Key idea: PWAs work best for the businesses targeting both web and mobile platforms. If you choose to focus on only one of those, there is no reason to choose progressive web app development.
關鍵思想 :PWA最適合同時針對Web和移動平臺的企業。 如果您只選擇其中之一,則沒有理由選擇漸進式Web應用程序開發。
3.您是否不愿意讓您的用戶通過Web瀏覽器訪問該應用程序? (3. Are you reluctant to let your users access the app via a web browser?)
Another essential difference between mobile apps and progressive web apps rests in the fact that the former are downloaded from the store, while the latter – via a shared link or directly from a website as it is illustrated below.
移動應用程序與漸進式Web應用程序之間的另一個本質區別在于,前者是從商店下載的,而后者是通過共享鏈接或直接從網站下載的,如下所示。
Tastes differ. If you think that working with App Store or Google Play is easier than fighting the SEO competition on Google or inspiring users to share your links, you should feel free to choose mobile app development.
口味不同。 如果您認為與App Store或Google Play合作比比在Google上進行SEO競爭或激勵用戶共享鏈接要容易得多,那么您應該隨時選擇移動應用開發。
If you think that it is more difficult to be featured in top search results in Stores comparing to Google search results, go with PWA. Besides, if your website already has a sufficiently large target audience of devoted users, progressive web apps would work best for you.
如果您認為與Google搜索結果相比,要在商店的熱門搜索結果中更難成為特色,請使用PWA。 此外,如果您的網站已經擁有足夠大的忠實用戶目標受眾,那么漸進式Web應用程序將最適合您。
Key idea: If you want your users to access the application via the App Store or Google Play rather than through a browser, or if app store optimization (ASO) sounds simpler than search engine optimization (SEO), you should go with a mobile app.
關鍵思想 :如果您希望用戶通過App Store或Google Play而不是通過瀏覽器訪問應用程序,或者如果App Store優化(ASO)聽起來比搜索引擎優化(SEO)簡單,則應使用移動應用程序。
4.您是否需要高級移動設備功能? (4. Do you need advanced mobile device features?)
While PWAs can work with geolocation, a lot of advanced mobile device features remain beyond their reach. Progressive web apps do not work with proximity sensors, advanced camera controls, audio or video recording, fingerprint scanning, NFC, or even Bluetooth.
雖然PWA可以與地理位置一起使用,但是許多高級移動設備功能仍然無法實現。 漸進式Web應用程序不能與接近傳感器,高級相機控件,音頻或視頻記錄,指紋掃描,NFC甚至藍牙一起使用。
Ask your development team for the PWA checklist of features that they will not be able to implement. If you cannot do without at least one of these features, you should opt in favor of mobile development.
向您的開發團隊索取他們將無法實現的功能的PWA清單。 如果您不能沒有這些功能中的至少一項,則應該選擇移動開發。
For instance, the progressive web app of Pinterest does not feature the function of taking photos, which is present in their mobile app.
例如,Pinterest漸進式Web應用程序不具有拍照功能,該功能存在于他們的移動應用程序中。
Key idea: Incompatibility with native device features can hinder you from developing a PWA. While this issue may be solved in the future, for now, you should go with mobile apps instead.
關鍵思想 :與本機設備功能不兼容會阻礙您開發PWA。 雖然將來可能會解決此問題,但現在,您應該使用移動應用程序。
總結 (To Wrap Up)
Before asking for a PWA, you need to decide whether you really need the PWA approach. Start by answering four simple questions:
在請求PWA之前,您需要確定是否確實需要PWA方法。 首先回答四個簡單的問題:
- Do you have any ready-made developments, such as a native mobile app? 您是否有現成的開發,例如本地移動應用程序?
- Do you want to focus on mobile devices only? No desktop or web platforms? 您是否只想專注于移動設備? 沒有臺式機或網絡平臺?
- Are you reluctant to let your users access the app via a web browser? 您是否不愿意讓您的用戶通過網絡瀏覽器訪問該應用程序?
- Do you need advanced mobile device features? Are you going to use fingerprint scanning, NFC, or Bluetooth? 您是否需要高級移動設備功能? 您要使用指紋掃描,NFC還是藍牙?
If you answer "yes" to the majority of these questions about progressive web apps, then, probably, you do not need a progressive web app. A mobile app will fully cover all your needs.
如果您對這些有關漸進式Web應用程序的大多數問題回答“是”,那么可能就不需要漸進式Web應用程序。 移動應用程序將完全滿足您的所有需求。
您對PWA有想法嗎? (Do you have an idea for a PWA?)
My company KeenEthics is an experienced progressive web app development company. In case you need the following services, feel free to get in touch.
我的公司KeenEthics是一家經驗豐富的漸進式Web應用程序開發公司 。 如果您需要以下服務,請隨時與我們聯系 。
You can read more of my articles on the KeenEthics blog: Four Questions to Understand If You Need PWA.
您可以在KeenEthics博客上閱讀我的更多文章: 如果需要PWA,則需要了解四個問題 。
聚苯乙烯 (P.S.)
Also, I would like to say "thank you" to Tetiana Matviiok for helping me edit this article.
另外,我想對Tetiana Matviiok表示感謝,感謝他幫助我編輯本文。
The original article posted on KeenEthics blog can be found here: Progressive Web Apps vs Native: Which to Choose and When?.
可以在以下位置找到發布在KeenEthics博客上的原始文章: 漸進式Web應用程序與本機:選擇哪個以及何時選擇? 。
翻譯自: https://www.freecodecamp.org/news/four-questions-to-understand-if-you-need-pwa/
pwa 問題