9 ms·
Write your app in HTML5, upload it and get back app-store ready apps
- adamjernst 15y agoI think PhoneGap is doing great work, they're obviously getting better, and I don't mean to diminish what others have poured so much effort into. But, are there any successful apps made with PhoneGap? Writing apps in HTML5 is constantly hyped, but there isn't a single HTML app out of the dozens on my iPhone except Netflix. PhoneGap's app gallery doesn't have a single app I've heard of. (The Netflix app isn't too pleasant, either, unfortunately.)
- domhofmann 15y agoThe new LinkedIn and OkCupid apps are primarily HTML5 based. Not quite the same, but every new release of the Facebook app seems to have more of its existing views replaced by HTML5 counterparts.
- flyosity 15y agoI'm fairly certain that the Facebook iPhone app does not UIWebViews to render anything. Their fast-scrolling tableviews are painstakingly crafted from scratch, natively, and (I believe) still use Joe Hewitt's framework for complex view rendering. I know some guys on the Facebook iPhone app team and they're die-hard Cocoa developers, I can't see them ever saying "screw it" and using a UIWebView with HTML.
- domhofmann 15y agoGo to your profile and swipe left on a wall post and observe the "Remove" button and its animation. Now go to the bottom of your wall, and tap on the "See more posts..." cell. Notice that the activity indicator is an animated GIF. Open the app frequently and you'll see certain elements in the UI automatically changing without downloading an update. Or check out m.facebook.com and play around with the news feed that is identical to the one in the iPhone app. Granted, there are other approaches you can take to get this behavior, but I'm not sure why you would. My impression is that they're using HTML5 in these areas.
- flyosity 15y agoHmm, they're not using the native UITableView animation for editing, but that doesn't mean it's HTML. It's just clunky animation, mostly because each cell is doing a lot of drawing translation due to it all being three20. Also, the "see more posts" cell at the bottom is a TTTableMoreButtonCell (https://github.com/facebook/three20/blob/master/src/Three20UI/Sources/TTTableMoreButtonCell.m https://github.com/facebook/three20/blob/master/src/Three20U...) I believe. I know that Facebook is very pro-HTML5 but I don't think there are any views in the native iPhone app that are not native UIKit or based on three20. I'll ask around, would be nice to now if there's any shared code at all on their end.
- flyosity 15y agoI stand corrected! I got confirmation from both Joe Hewitt and JazzyChad that they are indeed webviews used in many places now instead of native tableviews. Disregard everything I said :)
- kwellman 15y agoI just watched this video (http://gigaom.com/2011/09/27/facebook-mobilize-2011/ http://gigaom.com/2011/09/27/facebook-mobilize-2011/) where Facebook's head of mobile product talks (a tiny bit) about using HTML5 in their mobile products instead of all native development to keep pace with launches on the Facebook desktop site. Check out the video at ~16 minute mark.
- shahidhussain 15y agoAs if by magic, this story was just published: http://www.readwriteweb.com/archives/how_facebook_mobile_will_evolve_with_html5.php http://www.readwriteweb.com/archives/how_facebook_mobile_wil...
- Tyrant505 15y agoAre writers scouring our discussions looking for topics for their readers?
- abbott 15y agonot magic, TechCrunch and other blogs have been talking about Project Spartan for months. The screen shots were leaked yesterday, which is news worthy...unlike our comments.
- DenisM 15y agoIt took m a few seconds to realize what is wrong with "HTML5 fist of rage" logo in the article. The fist has 6 fingers. To be fair the original HTML5 logo isn't that much better...
- mmahemoff 15y ago6 fingered fist is the original logo. (More precisely, it's the best we had to use until the release of the w3c one you're referring to.)
- joehewitt 15y agoSome, but not all, table views were replaced with web views a few months ago. News Feed is one example that is now HTML.
- flyosity 15y agoI'm not always proven totally wrong on HN... ...but when I am it's by Joe Hewitt. TGIF!
- DenisM 15y agoHm. How do you handle progressive loading? Do you even bother, or do you just load up the entire news feed and let the WebKit struggle with keeping images in-ram/in-cache etc?
- wallflower 15y agoNetflix uses an interesting WebKit-based approach for progressive loading. Basically, they reuse cells like UITableView does. http://cdn-0.nflximg.com/us/presentations/htmltvui/oscon-2011/Netflix%20Webkit-Based%20UI%20for%20TV%20Devices.pdf http://cdn-0.nflximg.com/us/presentations/htmltvui/oscon-201...
- DenisM 15y agoThank you, good sir!
- saurik 15y agoIt is easy to get fast scrolling pseudo-UITableViews using UIWebViews, as long as 1) the tables aren't /that/ long, 2) you change the grid size to something larger than default (to avoid checker-boarding), and 3) you decrease the deceleration constant to match those of normal tables. (Note: I know this from experience with a very widely deployed application: Cydia.)
- rhizome 15y agoAnd I uninstalled the OKC app within a week of them making the switch. Changing it to every action being roundtrip-based made it unusably slow. A total misstep, if you ask me.
- pstr 15y agoApple's "App Store" app on iOS uses HTML...
- smackfu 15y agoCertainly seems like it, or at least every page it displays is doing a separate server call that is not cached very well.
- sil3ntmac 15y agoLast I checked (2+ years ago), iTunes on Mac uses an XML format that describes the layout of the page - pretty close to HTML.
- Limes102 15y agoHaha - Indeed. It didn't load the style sheets for me once. Not a pretty sight.
- zerostar07 15y agoMobile browsers are getting better and better, and apple's iOS happens to have the best. I think the app store distribution mechanism is the main reason you don't see many html apps. It's the big entry point, there's a huge network effect and its cool to say "we have an app for that". Maybe facebook's project Spartan will spark the inevitable switch to html. I mean, check out twitter or kindle on the ipad... what are they lacking in?
- maccman 15y agoJust wait till Spine Mobile is released on the 4th of October at FOWA: http://cl.ly/Aa4V http://cl.ly/Aa4V http://cl.ly/Aa7P http://cl.ly/Aa7P
- rapind 15y agoLooks great maccman. Here's a little more context if you're not sure what he means by "Spine Mobile". http://bit.ly/q7Wrkr http://bit.ly/q7Wrkr
- jasonlotito 15y ago> But, are there any successful apps made with PhoneGap? Define successful. Because, let's be honest, if I need an application for my company that will be used internally, does it matter if you haven't heard about it? Don't get caught look at this from just one point of view.
- mikeklaas 15y agoOur app (Zite for iPad) is 90% HTML5+js and (I think) is reasonably successful.
- sv123 15y agoIs it made in phonegap though? ie. The only native control on your app is a web browser window?
- alexhaefner 15y agoThis has always been my feeling. It hasn't made me any friends though. Phonegap is a great feel good piece of technology, that browser enthusiasts can point to and say, "See this is what you can do with the web".
- zeta 15y agoThe FT app is based on html5. Initially, they had an app, but transitioned quickly to html5. Takes a wee bit longer to load, but barely notice that anymore. The experience otherwise is pretty much the same. And for what its worth, it's the best news app on my ipad.
- vinhboy 15y agoIs there like a demo app with code I can look at? Thanks.
- jberryman 15y ago$ git clone http://github.com/phonegap/phonegap-start.git http://github.com/phonegap/phonegap-start.git
- Hisoka 15y agoI may be ignorant, but to write a complex app, don't you need HTML5 AND a mobile javascript framework like JQuery Mobile and Sencha? Or does HTML5 handle that too? If it does require a Javascript framework, that's when the quality deteoriates... I think imitating the look and feel of native apps is easy. Making the performance smooth on the other hand is hard.
- flyosity 15y agoI'd say they're both hard. As an interface designer who works on iOS apps, it always pains me to see a web technology mobile app that's trying to look like it was built with UIKit but it's ever-so-slightly off. Some pixels are broken, text looks wrong, padding is off. I know why it's alluring, but I'd much prefer to see them craft their own interface style without aping Apple's UIKit look and feel. If someone is trying really hard to emulate a native app's interface but without native technologies, I think they're already doing it wrong. Focus on the UX, not taking a different framework's exact visual style and copying it pixel for pixel.
- jbail 15y agoHTML5 is JavaScript. Without JavaScript, HTML5 is just a few semantic HTML tags (like header and section) and a few extra form input attributes (like required and placeholder). As far as JavaScript frameworks go, you could use Sencha or jQuery Mobile or one of the other few dozen frameworks out there --- or you could roll your own. I've been doing mobile web development for about a year now. I've done both PhoneGap and over-the-air mobile web/native apps (with embedded webviews that load HTML/CSS/JS from the web when requested). Both types of apps accepted by Apple and in the Appstore as well as in the Android Market. I would recommend rolling your own and not trying to imitate the look of native apps. One of the strengths of using HTML5 is that you can create a custom look and feel that doesn't look like every other app out there. Since you mentioned Sencha and jQuery Mobile, here's what I think having used both: Using Sencha is nothing at all like using HTML5. You don't even write HTML or CSS. You write JavaScript that uses Sencha's classes/methods. The look and feel very much tries to mimic native and they do a pretty good job at it...except that most widgets look like they were ripped from an iPhone, which is disorienting for users on Android. That said, you get good performance and a boatload of widgets/ui controls out of the box. The price for this is a large, multi-hundred kb framework and a commercial license. jQuery Mobile doesn't really try to look native and it really doesn't "feel" native either. jQuery has it's own ui controls that more or less look identical on iPhone or Android. With jQuery Mobile, you do write HTML and have a more transparent view of that as well as of the CSS. But, you have to write HTML the "jQuery Mobile way" to utilize the UI built into the framework. You don't get as many widgets and ui-controls as you do in Sencha and overall, the look and feel is not of the same caliber either. But, it's smaller than Sencha, has your standard MIT license and is more easily modified. Neither is perfect and both have pluses and minuses. If you know some HTML, CSS and JavaScript, you will absolutely get better performance and and a smoother look and feel by rolling your own light JavaScript for your app that does just what it needs to do. If you'd like to see an example app I built using PhoneGap and handrolled HTML/JavaScript/CSS, you can download Easy Baby from the Android Market. It's free. You'll find a link to it on my website: http://newbabysleep.com http://newbabysleep.com
- Urgo 15y agohttps://build.phonegap.com/docs/ios-builds https://build.phonegap.com/docs/ios-builds "Since PhoneGap Build uses Apple's standard development process to build applications, you will need to sign up for their developer program to build iOS applications on PhoneGap Build. You will also need a Mac to configure your certificate and provisioning profile." :(
- joelhaasnoot 15y agoIt's "just" a code generation tool
- dkersten 15y agoCheck out AppMobi[1], it may be what you need - at least, from my brief glance at it, it looks like it: build iOS and android apps using HTML+JS, no need for a Mac or the iOS developer kit. The core tools are free too, but they charge for services such as compiling your program for iOS and such. They also have something called DirectCanvas which is basically HTML5 canvas without the rest of the browser cruft, for higher performance canvas apps (eg, games - they have built in support for the Impact JS game engine, for example). [1] http://www.appmobi.com/ http://www.appmobi.com/
- infocaptor 15y agoHow much effort needed to convert my single html with few javascript files to be app-store eligible. I think there is more to just using the phonegap http://www.mockuptiger.com/a/123wireframe.php http://www.mockuptiger.com/a/123wireframe.php
- jakejake 15y agocool web app. i think the difficult part of converting it for mobile would be the screen size necessary to work effectively and possibly getting the touch gestures to work properly for moving and resizing the controls.
- nithinag 15y agothis looks cool!
- exratione 15y agoSpeaking as someone writing a fairly major HTML5 iOS app using Jo and PhoneGap: this looks like a very helpful way to take the make-work out of the case where you have an app that uses no native functionality, and is not in any way optimized for best appearance. That's not a knock - a lot of people have that use case, and spend a lot of time on their own systems for deploying to multiple platforms. Consider internal apps, for example, that don't have to be massively visually slick and polished. But ... given the very large differences between even similar platforms, and even between versions of platforms, you're not going to be getting much from this if you are building ultra-slick apps in which you really do need consider, say, how hardware acceleration or browser quirks fit into the picture.
- zerostar07 15y agoWasn't there a time when apple rejected phonegap apps? (they did reject one of mine for sure).
- anothermachine 15y agoYes. Policy changed in 2009. https://code.google.com/p/phonegap/downloads/list https://code.google.com/p/phonegap/downloads/list
- anothermachine 15y agoNice, and I use PhoneGap for Android, but you lose all the niceties like access to hardware buttons (which means you convert limited screen space to menus) and keyboard and intents and whatnot. I had to write some plugins to get my game working on Android (and there are still compatibility problems around opening intents), so PhoneGap apps definitely lose something in the usability department. And of course animations are not successful in this environment. Ads are a pain too, if that's important to you, with the Google Admob/Adwords migration happening and the mobile web vs app ambiguity. PhoneGap seems helpful as a part of the app's main UI, but native chrome is still important to completing an app's functionality and usability. I don't see how Build solves that use case. Still, it's a niche.
- sunsu 15y agoThe menu button, back button, and search button all work with Phonegap. What version are you using? http://docs.phonegap.com/phonegap_events_events.md.html http://docs.phonegap.com/phonegap_events_events.md.html
- forkrulassail 15y agoBeta code pretty please?
- ggoodale 15y agoGreat service - I've used it to build a modest application or two for Android and iOS. One caveat: Phonegap plugins that include native components (for example, the Facebook plugin) can't be included in apps built with Phonegap Build (yet).
- drzaiusapelord 15y agoWhat plugins have you been using? Last time I look at pg, the plugins I found were alpha quality or just abandoned. I'd love to hear what's current. Thanks.
- ggoodale 15y agoAt the moment, just the Facebook plugin for Facebook Connect authentication.
- deleted 15y ago[deleted]
- gto16108 15y agoPhone Gap paired with sencha would make one seriously native-feeling iPhone application. And all HTML5? Beautiful.
- wavephorm 15y agoUpload your website, download a native app. What is wrong with this picture? If you can build your app as a web app and don't require hardware access then I'd think twice whether a native app is required.
- adolph 15y ago"Native app" could be a critical bit for marketing or payment processing.
- pxlpshr 15y agoRequired? No. But there are benefits to being available on said platforms such as free distribution and eye balls. But there are also drawbacks, more specifically with Apple, if you have to spend a lot of time in the black hole review process.
- dpcan 15y agoIt's about being found in the app stores. That's where people look for stuff on their phones, that's where you need to come up if you have something you want on someone's phone. Of course there is a lot of down-side to this, but it is what it is. I wish the App Stores, particularly the Android Market, would create a much more elaborate system of categories allowing people to narrow their browsing down to exactly what they want, then it wouldn't matter so much if there was a lot of useless crap in the app stores, because we would never see it.
- rhizome 15y agoThis brings up an interesting point: is there anecdata regarding appstore presence being a gateway/entry-point for a website? That is, first the app, then the website?
- teej 15y agoHTML+CSS+JS certainly implies a website, but it doesnt have to be. We built a prototype mobile game in two weeks using PhoneGap and we were able to deploy to Android effortlessly. The visibility of the app store gave us (zero marketing, free app) brought in 2k downloads in two days. That kind of free distribution is hard to replicate on the open web.
- ricardobeat 15y agoAm I back to 2010? Or am I reading Reddit?
- Rotor 15y agoVery curious to see how they implement this tool. I would think there would have to be some type of "compiler hints" for particular app device builds.
- czzarr 15y agohow different is this from strobe ?
- dannyr 15y agoYou still need PhoneGap to build an iOS/Android app.
- deleted 15y ago[deleted]
- xoxa 15y agoIn the phonegap docs I see a single method to access the iOS camera, camera.getPicture. Is there anyway to access video as well?
- toblender 15y agoFunny I just released an application using this method yesterday. Too bad the Apple sales reporting site is down. I wanted to see how well HTML5 Apps sell. http://defyent.com/#astro-dating http://defyent.com/#astro-dating
- designium 15y agoQUESTION: Is there a good tutorial about creating PhoneGap apps integrated to Rails apps?
- pmdan 15y agoThis is my favorite example of an expertly-made PhoneGap app: http://www.youtube.com/watch?v=0pCtD4GuAqE http://www.youtube.com/watch?v=0pCtD4GuAqE So smooth.
- MatthewPhillips 15y agoNice. Anyone know how they achieved the transition effect? It's not a simple CSS3 transform. The bottom of the page seems to move first, then the top of the page is dragged over.
- doctoboggan 15y agoIt could be an artifact of the scanning used in the video capture. The image has moved between the time the top pixels and bottom pixels were recorded. I believe this is known as aliasing.
- Limes102 15y agoI'm writing really a very large app for the company I work for. We're using PhoneGap with HTML and JavaScript and have many plugins. What we are not having problems with is the fact that we only really have a single thread to do everything. All I can say is that I'm glad it wasn't my idea to build it this way.
- nupark2 15y agoThis is a surprisingly often ignored limitation of the browsers. You need threads to achieve decent performance given any significant complexity, and mobile CPUs are going multi-core.
- Limes102 15y agoYep - Buttons are bad enough, but things like sliders are just the worst things imaginable!! I thought it might be worth looking into web workers, but everything seems to interact with the DOM so that's not much help either.
- ashrust 15y agoMaybe I'm missing something but given you write the app in HTML/JS it must be difficult to unit test your wrappers for the phonegap functions, as I assume you can't simply pull up your dev site from the phone's browser. I'm thinking particularly about things like the contacts or network status functions.
- dendory 15y agoThis site is awesome. To try it out, I made a quick one page app, uploaded it, made signing keys, and got it to the Android Marketplace, all inside of a few hours. My first mobile app ever.
- pbreit 15y agoI started looking at PhoneGap but wasn't happy with Jquery Mobile for the UI. I am now trying out Titanium which offers a similar promise of ease for web/Javascript developers but with more native UI elements. So far so good but developing in Aptana/Eclipse-based Titanium Studio is a drag. The more "consumer" your app the more likely it needs to be mobile. But I think there is probably a large class of apps where PhoneGap/Titanium make sense. Definitely in the internal business category where the audience is finite and the look-and-feel is secondary to the functionality and cost/ease of development and maintenance.
- diamondhead 15y agoIs there any way to get an iOS development license using no Apple device?
- unfed 15y agonope