I've been living under a rock as far as Rails and the surrounding
ecosystem has progressed over the last couple of years while I
maintained a Rails 2.3 app enviously looking on as everyone played
with all the new cool toys. Well, I still have to do that next year
but may get some time to develop some smartphone mobile applications,
or at least front-ends for some Rails app... probably nothing too
taxing, maybe audio/video playback but that's about it aside from your
usual tap-process-change the UI stuff.
So, just wondering if any of you esteemed ladies and gentlemen have
used any of the mobile frameworks out there, like Titanium etc., and
can recommend any of them? Do you use HTML/CSS/Javascript
cross-platform, or do you develop two apps in plain Objective-C and
Java? Or Ruby compiled to something that runs on the phone? Or some
other setup that I've never heard of due to living under the
aforementioned rock for so long?
Some or all of these features would be nice (assuming that you use one
of the cross-platform frameworks):
* Being able to target iPhone and Android without rewriting the whole
application.
* Ruby or JavaScript-based development.
* Open Source
I guess that's about it.
Thanks!
Robert
Robert
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
Depending on the app, however, the dream of cross-platform development
might be a little unattainable. Apart from the language differences
etc, just porting an app screen-for-screen from one platform to
another tends to be pretty obvious to the people using it. Users of
either platform tend to have incompatible expectations of how things
will work.
I'm by no means an expert though; I've mainly been involved in
building the backends for apps on both platforms, and have had pretty
close contact with the developers on both teams. That, and a fair bit
of reading. (And making a PhoneGap app on both platforms, but I
wouldn't recommend it except for the most trivial apps.)
I think the best non-game apps are written natively for both
platforms; if you're happy to make compromises, one of the frameworks
might be the right choice.
Simon.
Not to spoil the party, Mike, but jquerymobile was very slow when we first checked (pre-release). I built a huge app with it and in the end we had to rewrite it from scratch with a custom framework so slow it was. Yes, bad choice on my part in the first place, but just sending smoke signals to everyone -- test it before you merry it, the divorce is going to be painful if you find it doesn't fit your expectations.
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/nESq_P6t744J.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/iPKVGdSX0bIJ.
Thanks Alex, I should probably add that I haven't used jquery-mobile in anger.Do you have any other recommendations for mobile web apps?
Can we have a play with your latest creation?
We went with the Sencha Touch + Phonegap option, worked well!
If you want to make a pretty basic app, PhoneGap might suit.
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/ncf4E3sutcoJ.
On the upside, a bit of quick fiddling around with a static HTML + JS
+ CSS mockup, using the internal browser, can teach you quite a lot
about what's possible on the phone. Adding the right meta headers for
the iPhone that remove the address bar etc can basically give you the
full app experience, without the hassle of building the full phonegap
thing -- good for development, and initial demos.
Pretty soon, I too will be embarking on creating a mobile interface for some of our web apps.
The impression I get from the sounds of things is that, ultimately, any framework you choose is a sideshow to the core concerns of mobile interfaces: pared down, snappy and responsive.
The recurring theme seems to be either a custom glue framework, backbone or a hybrid of the two. It makes sense; most of the data you'll be piping down to the client is gonna be via JSON, so something to formalize the access and manipulation of that is the key consideration. Everything else is gravy; a mere convenience to aid building something a little flashier.
I'll likely be following that rough guide -- almost all the data should be accessible via JSON at a REST endpoint. Coupled with Sinatra or something else to throw some data around, that should allow for spiking a few approaches to building the UI layer without getting too tied down to any one approach.
Sent from my iPhone
I wouldn't be so categorical. PhoneGap is not a cure to everything, but it works fine. I wrote several plugins and fixed several issues with the core along the way. It does a great job of exposing native features to JS. That's basically all to it, so it's not to blame if you have poor performance. If you need geo / native alerts / access to database and files / etc, you go with PhoneGap (or any other similar libraries) + JS framework, if not -- you go with whatever JS framework you choose only (or write your own).- A
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/nmBqYXfJ74sJ.
The alternatives seem to be worse though. You either ignore half the
market or you write your app twice.
Also, mobile Android isn't a single platform. It's as many as there
are versions of Android. And each is a moving target as time goes by.
The question, IMHO, for as long as the status quo remains, is: what's
my target audience. Then you go and develop for it. Your mileage may
vary along with the project's budget.
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/Ac1Xs_LgpaMJ.
> There are certain things to avoid and know, and that's about all to it. Unless you go deep into old devices, you are safe with HTML5 / CSS3.
That's exactly the opposite what REA guys were talking about.
As far as I remember, there are huge differences between iOS and Android devices. Not only technical, but also UI/UX, how interactions work, the reaction to different buttons (iOS devices have basically 1 hardware button, Androids have multiple which are often inconsistent, don't even know about BB and others).
The point was that you can't make it seamless/native on all devices because those are just way too different from many perspectives.
But if one doesn't care about it, then probably a framework is a good choice.
Cheers.
Unless you keep it ridiculously simple, or you're only targeting the
iPhone. Even then you won't get around the strange delays on pressing
buttons, and the general feel that it isn't quite a native app. And
if you're only targeting the iPhone, why not crack out the ObjC?
Before you do, I'd just like to thank everyone for their great
responses. While I didn't comment at all during the thread, I did read
everything :)
The mobile dev work hasn't started yet but when it does, I'll dig this
thread back up.
Cheers!
Robert
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/uRHKmcG9MlMJ.
--
I saw a demo at a user group a month or so ago... looks pretty neat, but afaik it only targets iOS? which is a bit of a shortfall given most of the other like toolkits at least target both android and iOS?
Stonie.
--