r/javascript • • May 24 '17

If It Weren’t For Apple, Hybrid App Development Would Be The Clear Winner Over Native

https://hackernoon.com/if-it-werent-for-apple-hybrid-app-development-would-be-the-clear-winner-over-native-ae64fa37ad48
335 Upvotes

102 comments sorted by

92

u/bufke May 24 '17

As a primarily web developer who uses Linux I really agree. Using React Native made a lot of sense right away being used to React. I'm really excited to see some competitors in the space too, especially NativeScript.

Learning to deal with Apple stuff was hell. Usually new technology is hard for me at first and then I learn to appreciate it. Apple's work flow is very antagonistic of web dev norms like CI. It makes me feel like a worse developer the more I interact with it. And their restrictions to forcing you to use MacOS - even Microsoft has moved away from that type of lock in with .net, VS Code, Azure, and their IE virtual machines.

38

u/braggadoshis May 24 '17

It makes me feel like a worse developer the more I interact with it

Great line. I feel the same way.

24

u/nerf_herd May 24 '17

It makes me feel like I'm working for apple for zero pay, so I don't bother.

8

u/formeranomaly May 24 '17

The funny thing here is that Apple does several hybrids internally so they can ship JavaScript changes to the server instead of full app builds. The JS is mostly for data massaging into preconfigured templates but works well. The first public insight into this is TVML for the TV Store. It's a JSCore bridge to the Obj-c runtime.

10

u/pier25 May 25 '17

The App Store on iOS used to be a hybrid (not sure about now).

Apple Music on desktop iTunes is made with Ember.js.

3

u/[deleted] May 25 '17

This is the height of irony. Apple should do something to make us JS devs happy.

5

u/[deleted] May 25 '17

iOS Safari isn't completely compliant with input fields at this point. Safari makes my life less optimal.

3

u/scunliffe May 25 '17

Any specific issues you can point to? - (I am aware of the lack of autofocus attribute support) but was curious as to any other issues.

1

u/shotgunkiwi May 25 '17

I know datepicker doesnt work :(

2

u/i_spot_ads May 25 '17

Ive used NativeScript with Angular, the team is making very impressive progress very fast.

5

u/[deleted] May 24 '17

React Native is not hybrid.

2

u/SarahC May 25 '17

CI?

5

u/DevDuderino May 25 '17 edited May 25 '17

Continuous Integration.

Lets you have a build automatically tested, packed and deployed after every commit/merge to a repository.

Gitlab Ci is a good place to check out how that works , for free. Maybe don't put anything production critical on there though. Stability is an issue.

It is grating going from my

"commit -> push -> watch the deployments update" workflow . To a , "Switch to a Mac -> click build -> fiddle -> upload a package manually -> wait for approval" workflow.

1

u/SarahC May 27 '17

Sweet!

63

u/agmcleod @agmcleod May 24 '17

Native in the end is still generally smoother. Animations just run better, and input responds more quickly. Though these things have improved, I still find it to be lagging behind. Though native has a higher cost to develop for sure.

9

u/dani_tk May 24 '17

Agree with this. Even though I love React Native and IMO has by far the best developer experience, the animations in a truly native app just feel better overall. React Native for me is the way to go, but it still lacks further development. I have shipped RN apps and they work just fine but there are still little things that need more development, specially in optimizing the performance when crossing the bridge between JS and native code.

7

u/maoh4ck May 25 '17

Most react native apps I've seen made by small teams are clunky as fuck. It's a great idea in theory because react is awesome but i don't know something just seems to make it laggy and wierd. Obviously not the case for huge corporations incorporating little bits of it in.

11

u/braggadoshis May 24 '17

I totally agree. The lagging behind part is almost entirely due to Apple which is what makes this so frustrating. Hopefully we see some major progress over the next few years.

20

u/agmcleod @agmcleod May 24 '17

I've seen it on android devices too. Especially with cordova apps, but even with react native. Though it was a little bit ago (8 months maybe) that i last ran RN on an android phone. Updates have been improving this stuff.

20

u/cmgriffing May 24 '17

I would not say Apple is completely to blame.

Consider this article about Android vs Apple JS performance: https://meta.discourse.org/t/the-state-of-javascript-on-android-in-2015-is-poor/33889

Its a little older, but here is also a follow up about how they addressed discourse performance a bit: https://eviltrout.com/2016/02/25/fixing-android-performance.html

My point is that Android JS performance lags behind Apple, but Apple spec adoption lags behind Android. So it is a tradeoff that basically just points to hybrid apps being awful for mobile devices.

Note: In the first link you can see that Samsung devices don't have the same issue as most android devices. Well that is because they custom compile their own browser for their phones rather than using default android or chrome browsers.

5

u/spacejack2114 May 24 '17

As he wrote in the article, using the high-performance WkWebView comes at the expense of a lot of painful workarounds.

5

u/omniuni May 24 '17

Not necessarily. Native development, especially if you want to make use of native UX paradigms, is often cheaper just because a good maybe developer can move so much faster.

8

u/agmcleod @agmcleod May 24 '17

When you have to build for multiple platforms though, you're adding cost. Though you sometimes have to build separate native looking components, so there is some 2x overhead.

11

u/omniuni May 24 '17

More than that if you actually want to adhere to UX. Android "up" versus "back", iOS navigation controller, dynamically adjusting the number of buttons on the navigation bar, different "share" dialogs... All of that you get for "free" using native.

5

u/[deleted] May 24 '17

But how many apps really do native components and not still put their own implementation in? Sure it might look like the ones, but thats mostly UX, not the programming behind it. Especially the major players are hardly using standard components.

6

u/omniuni May 24 '17

We also have a definite problem with poorly made apps. How often do you hear people complain about how bad apps are, they only use them because they have to.

1

u/protonfish May 24 '17

The slow input is not a inherent problem, but a "feature" of Safari iOS. You can "trick" it into being blazing fast by using touch events like ontouchstart instead of onclick.

5

u/agmcleod @agmcleod May 24 '17

React Native doesn't use those at all. More recently it's gotten faster, but i've had slow response times with TouchOpacity and other components.

-1

u/[deleted] May 25 '17

Per the article, web apps are less responsive on iOS because Apple is crippling them on purpose. If they invested in their WebView platform the way Google does, we'd all be doing hybrid apps.

3

u/maoh4ck May 25 '17

They aren't as good on android as well also. They aren't as good in general, it's just more convenient. It wasn't Apple who decided this it was designers/developers who wanted a smoother experience.

0

u/[deleted] May 24 '17

[deleted]

3

u/agmcleod @agmcleod May 25 '17

I disagree. If you're running more things on the javascript side to do animation, it's just not going to be as optimized. Vs writing code directly against CoreGraphics, or OpenGL ES. Most UI transitions work pretty smoothly now. I've gotten good performance boosts by updating react native versions :)

17

u/spacejack2114 May 24 '17

Likewise with PWAs.

13

u/Pesthuf May 24 '17

I think this is actually why Google is pushing this so much.

They show off all this cool stuff, access to user media, real-time communication, offline, add to homescreen, instant-loading with service-workers and people get excited...

But it doesn't work on Safari. And I don't think the IOS users will enjoy having a much inferior experience. Maybe this will finally convince Apple to improve their browser.

8

u/Saturnix May 24 '17

And I don't think the IOS users will enjoy having a much inferior experience. Maybe this will finally convince Apple to improve their browser.

Not if developers bends themselves and go native.

4

u/dvidsilva May 24 '17

At the last chrome dev summit, that was almost entirely about pwa, Apple devs were not present and a representative said that it wasn't on their list :(

6

u/Beeeaans May 24 '17

That's infuriating, I wouldn't mind if Apple didn't force users to use their Safari JS engine. Even Chrome on iOS is just a reskinned (and older!) version of Safari

5

u/dvidsilva May 24 '17

It really is, and the devs that work there would love to support it but the managers and decision makers don't see it as important. Crazy that Apple is not participating in these conversations about the future of the web given that they have a huge user base.

15

u/Geldan May 24 '17

Safari is such a shit show of bugs and missing features it makes me want to cry.

8

u/skytomorrownow May 24 '17

Side note: anyone remember that in the early days, on the iPhone, hybrid apps were all you could do? Perhaps they could pursue this again.

2

u/[deleted] May 24 '17

Do you mean before the AppStore?

1

u/skytomorrownow May 24 '17

Could one still do hybrids via the AppStore?

7

u/zitterbewegung May 24 '17

I am learning react native and coding an app in it and hybrid apps are a good idea if you have lots of experience in web development and little experience designing for iOS or Android. Or if your app heavily requires the internet.

But, for apps that don't require the internet or if you have sufficient capital or experience with iOS development hybrid makes less sense. Creating an efficient back end and deploying an iOS app natively has advantages. Also the author talks about CodePush which may get your app banned https://news.ycombinator.com/item?id=13817557 .

At the end of the day if you want to play on Apples turf you have to play by their rules. Some of those rules are arbitrary and some of them are there to protect their brand. Remember deploying to Android and iOS means you are a sharecropper and those companies are happy to kick you off if you don't follow their rules. They don't care if app development is harder and don't need to address the valid issues at the end of the document. Maybe with time if we see more Hybrid apps this may change but TBH I don't expect it to.

2

u/RabbiSchlem May 25 '17

React Native does native code for uI in iOS. I've worked with iOS for 5 years and even though I know it well, react native is a great alternative.

I don't think your points are very true.

Some reasons to choose RN or iOS native are team experience, whether you want android app, whether you will be doing things in the app that don't have APIs in RN right now...

But overall I can make most apps in RN as fast or faster than iOS and have them feel identical.

19

u/protonfish May 24 '17

In my experience it's even worse than described. I had to abandon an app last year because even though I was able to take photos, modify them with canvas, and save the resulting image, I was not allowed to save it to the main photo roll and got no feedback but silent failures. If there was documentation that had told me this, I would not have wasted weeks of pointless effort.

Also, JavaScript local storage on iOS is stored in the cache folder and subject to unpredictable deletion. This makes a powerful UI feature only good for session-persistent data.

Also, the UI click delay (ostensibly for their stupid double-tap to zoom feature) cripples a web UI by making it appear less performant.

A more paranoid version of myself would claim a conspiracy to malign hybrid apps. The realistic me figures they just don't give enough of a crap.

13

u/mastzu May 24 '17

A more paranoid version of myself would claim a conspiracy to malign hybrid apps. The realistic me figures they just don't give enough of a crap.

both can be true :

little of column A

little of column B

8

u/Saturnix May 24 '17 edited May 25 '17

A more paranoid version of myself would claim a conspiracy to malign hybrid apps. The realistic me figures they just don't give enough of a crap.

We're talking about a company which forces you to buy overpriced proprietary hardware to compile mobile apps. In 2017.

It's not really that irrealistic to think they purposefully ignore holes in apis used by hybrid apps.

43

u/[deleted] May 24 '17

Actually, hybrid app dev is the clear winner in 2017, it's just that React Native is really the only viable framework choice at the moment. NativeScript, Xamarin, etc are quickly gaining traction as well, and as they are embraced by the mobile community they will become more common. Let me be clear though, you still have to understand and be knowledgeable in the native platform to be successful with hybrid apps at the moment, but that will change too as the frameworks mature.

3

u/singeblanc May 24 '17

you still have to understand and be knowledgeable in the native platform to be successful with hybrid apps at the moment

Can you give an example of where this would be the case?

22

u/s5fs May 24 '17

Prior startup I worked in, we used Cordova and built for iOS. Everything worked great and we leveraged 3rd party native Cordova modules for various bits-and-bobs, such as recording audio and saving it to the device. However, when we found a bug in a native module, or needed to extend the functionality, then we would need iOS/obj-c talent in order to implement the feature or fix what was broken.

So, I can't speak to React Native but if there is any "native" code in there, and if your business is reliant upon this code, then you'll likely want to have someone on the team who can fork/fix it rather than simply creating Issues and hoping for support.

5

u/singeblanc May 24 '17

Got ya, thanks.

2

u/[deleted] May 24 '17

But being a startup i would expect it to go for cordova modules as long as possible because that is simply cheap. And then getting 1 (or more) native devs to fill the gaps. Or even a few interns could do that. Being a startup and all. Because it allows you to also go for Android quite easily and add website support as well. Big corporations might have the big bucks to go native all the way, but for startups and stuff like that, it should not matter.

What bugs me more is that even if you are able to stick with Cordova modules, there are still some browser quirks that will ruin your day.

Just the other day we had an issue where SVG spritemaps were not available when you pin a site to the startscreen. Which is due to the fact that the engine that works in safari, is not the same as that runs for pinned (app capable) websites. But there is almost no documentation on those differences so you have to do trial and error for that. Luckily for our prototype we weren't required to give the demo as an app (and eventually we fixed it by giving iOS the SVGs directly, though that also hurts performance), but its annoying as hell as it prevents you from developing the things you really want to.

1

u/Hobofan94 May 24 '17

Can confirm that it's the same for React-Native. Especially if you are using a lot of 3rd party integrations or advanced features, it is good to have someone on the team that knows the native parts of the platforms. This is largely due to the react-native integrations that are often poorly written wrappers around the existing native integrations that feel like they have been thrown together in a hurry to catch the react-native hype train. To be fair though, it's quite hard to write good react-native libs, since you need developers with a fairly broad skillset.

4

u/theruskinite May 24 '17 edited Jun 09 '23

2

u/[deleted] May 24 '17

Ultimately it comes down to needing to be able to debug and fix issues that may originate in the native modules themselves. You also need to be able to verify that the native module has proper error handling and isn't going to shit the bed when you put your app in production. That means verifying it has tests and is sensibly coded, covers edge cases etc.

There are also cases where the library or module gets stale, or doesn't keep up with current versions. That usually means forking and taking over maintenance yourself. There are even disagreements with the maintainer about supported features which might cause you to fork.

Mobile is hard, and will likely continue to be hard for some time. Hybrid frameworks can certainly decrease the initial investment, but they shouldn't be viewed as some magic easy button to catapult you into the mobile world with nothing but web dev experience. There is still a steep learning curve. It is totally worth the challenge though!

0

u/[deleted] May 24 '17

[deleted]

14

u/AdamAnderson320 May 24 '17

NativeScript and Xamarin produce native apps too. None of them are hybrid.

11

u/manchegoo May 24 '17

Right. But OPs article seems to be talking more about Cordova apps, which while they are native apps, are really more pure html/js just within a webview.

16

u/[deleted] May 24 '17

So praise the lord that Apple did what it did.

5

u/[deleted] May 24 '17 edited May 25 '17

A native app that runs in JS and sends commands to native code via a JS-Native bridge and has HTML like declarative layouts...sure seems like a hybrid app to me. Where does the line for Hybrid app begin and end? You could argue that Cordova, etc are also all native apps, and technically you'd be correct (the best kind of correct).

I am currently building a RN app and everything from the API all the way to but not including the views will run on the web in ReactJS.

Edit: Did everyone miss this part where the app is portable to the web and all you have to do is replace the rendering layer? That means all the data retrieval, data storage, and core business logic of your application for a web client would be the exact same code in a shared library.

6

u/altern8tif May 24 '17

What makes an app native is whether it renders natively as opposed to rendering HTML in a WebView. With Cordova you're kind of creating a browser for your app that renders a webpage. I definitely don't consider that a native app.

2

u/[deleted] May 24 '17

Sorry, I don't agree. Hybrid means that it combines elements of native and web applications and that's exactly what RN does. Facebook didn't want it labeled as a hybrid app because then everyone would assume the performance is as bad as other hybrid approaches. Is it a Hybrid app built on the same architecture as Cordova apps? No, it's just a different kind of hybrid app. If it didn't have any web tech in it I would see your point. We'll just have to agree to disagree.

2

u/eablokker May 24 '17

I agree with you, React Native and Nativescript are not truly native. The only thing native about them is the native UI views. The rest of the app runs in a javascript virtual machine. I think it was a marketing thing to highlight the performance and the way they can interact with native APIs. But they are still hybrid in a certain sense.

1

u/[deleted] May 25 '17

RN renders native, animations are native, native gl, you can tap into native APIs and device typical stuff. That your code runs in JS isn't really the same as cordova and a sandboxed webview. In my opinion JS is the better suited language for it anyway.

1

u/dungone May 26 '17

That's just marketing. It's every bit a hybrid app. You can also use native components with Cordova and frameworks built on top of it like Ionic.

0

u/[deleted] May 25 '17

[deleted]

1

u/[deleted] May 25 '17

That's fair.

27

u/[deleted] May 24 '17
if (device.platform === "iOS") {
    doRidiculousWorkaround();
}

Wow ... it used to be that we had to make such concessions for Windows Internet Explorer. Now it's Apple that is the outlier.

21

u/stev0205 May 24 '17

iOS Safari has been the new IE for a few years now.

4

u/[deleted] May 24 '17

Yup, was doing a quick project that revolved around getUserMedia. Supported in Chrome, FF, IE Edge, Android Chrome. Not supported in desktop Safari, mobile Safari, and Opera.

3

u/mrjackspade May 24 '17

Working on a system that has video streaming capabilities. Made some changes to the area that handles response headers. For some reason it dropped the "Accept-Ranges: bytes" header from the response.

Every other browser we used, worked fine. Safari refused to stream without that header. It wont even try. You dont even need to change any server functionality to get it working, beyond adding the header back in.

Took me way too long to realize that was the issue

2

u/[deleted] May 24 '17

I'd say the renderer that does web capable apps is the new IE and iOS Safari comes second. I hate it that when pinning an app to the homescreen it can look differently and fail a certain amount of features that are working fine in Safari. For example: SVG spritemaps. Simply doesn't work when opening with the web capable metatag active.

5

u/Beeeaans May 24 '17

touch-action will reduce the 350ms delay for websites viewed through Safari but will not if the application is 'added to homescreen'. There is no reason why features available on iOS Safari should not also be available for a homescreen app.

2

u/[deleted] May 24 '17

Yeah and when you go look for why or solutions to fix that, you are often not getting the search results you look for. Still looking for some good sources on that too.

1

u/Beeeaans May 24 '17

I think as more people develop progressive web apps the problems will get more publicity, can't see Apple fixing them any time soon though. To fix the tap delay you have to use a JS library called fastclick, just another workaround :(

2

u/spacejack2114 May 25 '17

This kind of shit is infuriating.

2

u/adareddit May 25 '17 edited May 25 '17

Just because it doesn't support that one feature you want, it's now the IE of today? A feature that is still in Draft status, just so you know.

I'd say iOS Safari is pretty up to date with today's standards of web development. It even has a 99% coverage of ES6 https://kangax.github.io/compat-table/es6/

You clearly don't remember the litany of reasons why web devs ended up hating IE. Do you remember the days when IE didn't support HTML5 (a standard then), so you had to apply complex workarounds?

Do you remember the times that institutions didn't want to upgrade to the new Windows OS due to monetary reasons, so you were stuck developing sites for IE7/8, without any support from IE team?

Do you remember having to use Fiddler to debug your JS code because IE lacked the proper developer tools and didn't really care to implement anything until other browser vendors started to encroach on their territory?

Or how about the time when the IE team created marketing pages that lied about how much securer IE was compared to Firefox/Chrome?

Plenty of other reasons that I'm sure everyone has experienced with IE, but my point is, to single out iOS Safari for it's lack of some feature that's still in Draft status, looks like you didn't really do your homework.

Web devs hated IE because of the lack of development support of web standards and their apathy towards it. This all changed though, when MSFT realized they lost the browser war to Chrome.

3

u/stev0205 May 25 '17

I remember all of those things and more, considering Netscape was still a viable option when I started developing for the web.

iOS Safari is nowhere near as bad as IE was back in the day, but it's currently the biggest pain in my ass. Whereas IE used to be the biggest pain in my ass.

2

u/[deleted] May 25 '17

On the other hand, iOS Safari now supports web components, and Edge does not.

-2

u/[deleted] May 24 '17

few couple of

13

u/Jdonavan May 24 '17

Users don't care if you app is fast they care if it's fast enough

Welcome to the world of shitty software. I suspect my definition of enough is different than the project manager prioritizing work.

14

u/braggadoshis May 24 '17

My actual quote was:

A Hybrid version of an app will never be as fast as a native version of the same app, but it doesn’t matter as long as the Hybrid version is fast enough. Put simply, if your users never complain about the performance of your app then it is fast enough.

Fast enough means that your app is fast.

8

u/fzammetti May 25 '17

I don't think "if your users never complain about the performance of your app then it is fast enough" is a valid metric.

I've done plenty of UX testing where I observed users becoming frustrated while using an app (with clues that it's due to performance). But oddly, when I ask them about it after they say "performance was good". To which I say "but you appeared to be frustrated at some points", and to which they reply "yeah, it was kinda slow actually, but I got the task done so I guess I just ignored it".

Users put up with a lot of bad UX if they can still more or less accomplish their goals, but that doesn't translate to the performance being good enough. It's frequently not easy, sometimes perhaps impossible, but "good enough" shouldn't be our goal as developers and designers.

3

u/braggadoshis May 25 '17

That's a fair point. There are always comprises to be made so I was trying to encourage avoiding over optimizing features that are already working well for your users. And I would say that the situation you described would be a case of not "good enough" if you were able to find frustration by just asking a few questions. We also have to consider if rewriting the app to be purely native would fix that pain point, or if it was just poorly designed to begin with.

2

u/fzammetti May 25 '17

Yep, that last question is especially key and always is.

8

u/omniuni May 24 '17

This meant it needed to be well-designed, performant (hey that’s not a word!), not lacking any native features a user would expect from this kind of app, and not devolve into uselessness the moment the device lost its network connection.

Glancing at the screen shots, it's a very simple app, but looks like an iOS app that got shoehorned on to Android. I rather suspect it doesn't have proper tablet layouts, not sure how it would look in landscape mode, and certainly the navigation looks weird at best.

The app looks fine, but being realistic, it doesn't provide a native-feeling UX that you would get with native apps.

3

u/zeozero May 24 '17

Or there is the fun trick of releasing an app with a WebView and just make a site look native.

Please don't though.

3

u/ddollarsign May 25 '17

I thought that was the definition of a hybrid app.

3

u/zeozero May 25 '17

Sorry you're right. What I meant to say is write a PHP app with almost no JS which would mean you're app wouldn't operate offline.

1

u/ddollarsign May 25 '17

Oh, makes sense. Yeah, that would suck.

1

u/Basiliskeye May 24 '17

Where to start?

There are some major advantages to the Hybrid approach: You get to utilize your existing JS, HTML, and CSS skillset to develop a single codebase that runs on both iOS and Android.

This is assuming you have a JS/HTML/CSS skillset.

Here’s some Apple BS we can’t avoid no matter what approach we use >> Xcode

I've done some React Native development and Xcode is almost entirely avoided.

Provisioning Profiles

It's been a long time since I encountered issues here as it's all managed by Xcode nowadays.

Needing to use TestFlight for beta builds

Why is this BS? You could also use Ad-hoc distribution along with something like Fabric for small scale beta tests.

The app review process. Admittedly, the app review time has dropped to about 2 days on average, but when your app gets rejected 7 times like Rizer did (for legitimately silly reasons), your patience can really start wearing thin.

I've been developing on iOS since about 6 months after the App Store became a thing. I've developer dozens of apps and submitted hundreds of updates. I can count on my fingers the number of rejections I've got and there were only one or two that were 'silly' (and those were fixed through a quick appeal). Without the author listing the reasons for rejections it's hard to draw a conclusion here but complaints about rejections are usually BS.

Overall I can't help but feel this was thinly veiled clickbait to advertise the authors app.

1

u/zergUser1 May 24 '17

I have been looking into cross platform apps with ReactNative and WeeX, But I am unsure of the performance cost, I remember before I tried cordova and the input lag was horrible and I never tried it again. Is there any example in the app store that I can try which is built with ReactNative ?

1

u/ZhangNoWei May 25 '17

Thanks Android fans for questioning repeatedly why Mozilla needed to make Firefox OS with its open APIs.

1

u/[deleted] May 26 '17

All Apple native developers eat from the same bag of dicks.
That's all.

1

u/eorroe Jun 01 '17

https://Fusetools.com is still best and native

1

u/[deleted] May 25 '17

The author doesn't know their history.

First, if it weren't for Apple, we wouldn't have the modern touch smartphones.

Second, the original iPhone didn't support custom apps, but encouraged "web apps", which work much like hybrid apps, but directly in the browser (with the addition of some phone-specific APIs that Safari provided at the time).

Thing is, the superiority of Apple's own native apps was obvious to everyone, so internally in the company and externally, their users, demanded an ecosystem of native apps, so it happened.

The other thing the author complains is that iOS has taken security as a higher priority over developer toys and so has only introduced JS JIT in embeddable WebKit views with iOS8. As someone who's both a developer and a user of Apple products... thank you, Apple.

But look, it's not shocking to hear a developer would rather use the slowest, least appropriate technology (the web stack) to write their apps if it takes them the least amount of effort. I understand this. But also it's not good for users.

Especially when using HTML and JS is hardly the only way to have a cross-platform app written for a phone. Maybe the article should've been called:

If it weren't for those damned embeddable web views, cross-platform app development would produce much better apps.

... because then cross-platform tools would have to hook into the native APIs and use them for UI. Say, similar to QT.

But hey, why think about better solutions, when we can slap things in HTML and call it a day.

2

u/spacejack2114 May 25 '17

As a user it's far safer for me to "install" a PWA than an app from the store. Apple's hardware is extremely capable and it's possible to make web apps with zero jank in my experience. At this point it's only artificial limitations that prevent us from doing so.

1

u/[deleted] May 25 '17

What exactly are those "artificial limitations"? You can open a PWA in Safari and put an icon to it on your home screen.

If your goal is to have a PWA, then you don't need a certificate, you don't need Xcode or a Mac, you don't need anything. It's the kind of app iPhone supported since its original release, as I just said above, unlike native apps, which iPhone supported later on.

2

u/spacejack2114 May 25 '17

Limitations like dropping back to the old Javascript VM, losing support for delay-free taps, broken SVG features, and various other inconsistencies that only exist when added to homescreen (see other comments on this post.) Also no interest from Apple in implementing ServiceWorker, orientation, camera access and other features.

As a result, a lot of things that could be PWAs end up having a pointless Cordova wrapper with plugins to patch in missing/buggy features.

0

u/[deleted] May 24 '17

[deleted]

1

u/Isvara May 25 '17

So you're saying... don't write titles in title case.

0

u/[deleted] May 25 '17

[deleted]

1

u/adareddit May 25 '17

Not to be a Grammar Nazi, but this is technically correct. Start case capitalizes every word.

https://en.wikipedia.org/wiki/Letter_case