-->
Save your seat for 纽约流媒体 this May. 现在注册!

Video: Progressive Web Apps vs. Native Apps, Part 2: Cons

Learn more about progressive web apps at 流媒体's next event.

Watch the complete video of this presentation from 流媒体西部, T204: HOW-TO: Getting the Most Out of Progressive Web Apps,在… 流媒体 Conference Video Portal.

Read the complete transcript of this clip:

Pieter-Jan Speelmans: An argument that we hear very often is, "Well, it's a progressive web app, but it's still JavaScript. It's not the same as if you're running native code," and that's indeed true. You will take a small performance hit if you start doing this, like you have when you're running JavaScript. But then if you look at the alternatives that a lot of other people are using, they want to simplify their app approach as well. They look at things like React Native or NativeScript and they develop their application in JavaScript and then just build it into a native application.

Something that not that many people know is that if you actually use a React Native style approach, it's even worse compared to what a progressive web app is simply because there are, 例如, 在iOS平台上, some limitations that Apple has built in which remove the capabilities to do just-in-time compilation, which basically is a wide JavaScript. The performance state of JavaScript isn't as big compared to normal native code. 但如果你这么做了, 例如, iOS上的React Native, you still have that performance hit, and it's bigger compared to when you do it in Progressive Web Apps.

Another thing which is kind of limiting the Progressive Web App approach today is that you don't have access to all the sensors which are in your mobile devices. The web APIs have come a very long way. You can do a lot of things. You can access the cameras, you can access a number of sensors like the orientation sensor. But if you want to do fingerprint authentication, 例如, then you're more or less out of luck for now.

Another thing: I don't know if it's really a big negative but it will be a big negative in some development teams. I'm actually expecting a very big religious war on the fact that it's not really native. 这总是一个问题. 其中一种方法是, 当然, 更好的, but it's not set that the Progressive Web App approach is less good than the native approach in every used case. There are actually quite a lot of used cases where running Progressive Web Apps makes a lot of sense. It is the use cases where you don't have the heavy compute tasks. There you don't really need the big optimizations that you have in the native code.

流媒体覆盖
免费的
for qualified subscribers
现在就订阅 最新一期 过去的问题
相关文章

Video: Progressive Web Apps vs. Native Apps, Part 1: Pros

THEO Technologies CEO Pieter-Jan Speelmans discusses the benefits of progressive web apps (PWAs) in this clip from his presentation at 流媒体西部.

SMW '18: THEO Technologies' Pieter-Jan Speelmans Talks Modular Player APIs

流媒体's Tim Siglin interviews THEO Technologies CTO Pieter-Jan Speelmans at 流媒体西部 2018.

Progressive Web Apps: What They Are and How to Get Started

With mobile viewing on the rise, developers need to know about progressive web apps which offer an app-like experience through the browser.

SME '17: Why You Need a Progressive Web App

Progressive web apps combine the engagement of native apps with the discoverability, shareability, and flexibility of browser-based content, including fast video playback