Re:Titanium vs Phonegap vs Native application development
by vishl on Thursday June 21, 2012 @11:32AM
(#4142471)
I've been doing HTML5 app development (via phonegap) on iPhone and Android for some time now, and I agree with a lot of what you said. You can make a really smooth, native feeling app using HTML5, but there are lots of things that don't work well. On iphone, there are lots of problems with fixed positioned elements, and on Android there are issues with translate3d. Both platforms have problems with "tap" events. These are all things that are important if you want a "native feel" in your app. However, there are workarounds.
I also agree that needing 3 front-end teams for app development just doesn't make any sense, especially for a small company. Since you can get near native performance with HTML5, it seems well worth the compromises.
FYI, my app doesn't use any mobile js frameworks, just Backbone.js (and phonegap).
Re:Titanium vs Phonegap vs Native application development
by cageface on Thursday June 21, 2012 @10:20AM
(#4142077)
I'm inclined to agree. I've been doing native iOS apps for over a year now but I'm cross-training myself with the HTML5 apis because I think that's where more of the work is going to shift over time.
I don't see any reason why mobile should be qualitatively different than the desktop in this respect. There will always be an equilibrium point between web and native but I expect it to come to rest heavily on the web side just as it has on the desktop.
Re:Titanium vs Phonegap vs Native application development
by rimantas on Thursday June 21, 2012 @10:45AM
(#4142224)
> The vast majority of the apps out there today would work
> just as well as HTML5 apps.
Except that you will need to load a bunch of frameworks to get the functionality which iOS already provides.
Re:Titanium vs Phonegap vs Native application development
by marknutter on Thursday June 21, 2012 @10:52AM
(#4142262)
Not a "bunch of frameworks". In our case, just one, that being Sencha Touch.
Re:Titanium vs Phonegap vs Native application development
by thekingshorses on Thursday June 21, 2012 @11:02AM
(#4142315)
Can you share your app? I am also working on a HTML5 app for android and iOS. Always looking for a good app to let other know what is possible in webapps.
Re:Titanium vs Phonegap vs Native application development
by marknutter on Thursday June 21, 2012 @11:14AM
(#4142368)
It's called "Kona" - just search for that on the app store and you'll see a brown icon with an orange K. Feel free to contact me if you have any questions, my email is in my HN profile.
Re:Titanium vs Phonegap vs Native application development
by thekingshorses on Thursday June 21, 2012 @07:23PM
(#4144656)
Cool, works pretty good.
Re:Titanium vs Phonegap vs Native application development
by marknutter on Thursday June 21, 2012 @07:55PM
(#4144741)
I think we can get it to feel even more native too, we haven't done a whole lot of optimizing on the transitions and whatnot. Overall I'm pretty impressed with Sencha and HTML5 in general, so far.
I'm on a contract with a company that has run the full gambit of mobile strategies over the past year. They started out by outsourcing native development of their mobile app overseas. After about 9 months of development they determined that for whatever reason, whether it be communication issues or poor product planning, the apps weren't where they wanted them to be so they decided to do a complete 180 and go with the HTML5 approach, which is what I've been working on.
We decided to go with the Sencha Touch framework because it's the most complete native-style mobile framework out there today. We've managed to recreate the native apps in just over 2 months, which is impressive considering it was a rewrite from scratch. A week ago we submitted to the app store and it was approved by Apple.
Performance on the iPhone 4s is surprisingly close to that of a native app, which gives me hope for the future of the phonegap approach. Phones and javascript engines are only going to get more powerful, so in a few years this experience should be ubiquitous for most people.
However, we're at a point in time where there are a lot of older devices, mostly running Android, that don't run HTML5 apps as nicely as they do native ones. For instance, our app is very usable on a 2 year old Android, but scrolling isn't very smooth and transitions are mostly non-existant due to the fact that hardware accelerated CSS3 animations aren't supported. I should mention that our app is mostly data (it's a productivity/collaboration app), so that helps.
I'm primarily a web developer but I've started diving into native iOS development for a side project where UX is more important. Native development isn't as bad as I had feared, but it certainly takes more time. If you're not very good at it, you'll end up with an app that really performs no better than what could have been done using HTML5. Bad code is bad code, no matter what it's written in. What keeps me from being sold on the native approach is the increasing fragmentation we're seeing on the marketplace. The thought of having to maintain three separate code-bases for Android, iOS, and Windows Mobile gives me cold sweats. Sure, there are strategies for sharing the basic logic between the three, but not nearly as turn key as simply dumping the code into Phonegap like we've done with our Sencha app.
In my humble opinion, given that we've seen near native performance on bleeding edge devices, I think that native apps will only be necessary for games and intensive content creation apps like iMovie and iWork. The vast majority of the apps out there today would work just as well as HTML5 apps.