Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is your experience with Android webapps (limitations, tips, best practices)?
    primarykey
    data
    text
    <p><h2>Update:</h2> As François mentioned, there are alternatives such as Phone Gap for a more cross-platform approach. It's a very good suggestion indeed. <strong>I'm open to any suggestions and I would really appreciate if I can learn from your experience.</strong><br> <em>Sidenote</em>: A web-only app is not high on my list of options, since I do want it to be on the android market.</p> <hr> <p>I'm about to start porting a facebook app to android and <strong>I'm debating whether I should write it as a native app or as a wrapper for a glorified WebView</strong>.</p> <p>How is your <strong>experience</strong>? What <strong>limitations</strong> did you face when writing a webapp? Do you have any <strong>advice</strong> you may want to share? Maybe you think that a native app is the way to go instead?</p> <p>To set up a famework for the discussion, the app I want to port right now is a simple fb app, in which the server is hosted in Google App Engine (written in Java, if that matters), and all the client code is html, css and javascript (with a good amount of jQuery). </p> <p>The app is basically a two player, turn-based game, with a bunch of static images that respond to user clicks, and a very simple chat box (independent of fb chat). It can handle several concurrent games for each user (but to different opponents, not the same).</p> <p><strong>Do you think is a good fit for an Android webapp</strong>?</p> <p>Thank you in advance.</p> <p>PS1: By all means, I will appreciate any insight, so please do not limit yourself to this specific example app should you want to be broader in your answer.</p> <p>PS2: Yes, I read the "Best Practices for Web Apps" page from developer.android.com, and I followed the links there, but it does not say much about speed or reliability of the WebView component, specially in terms of user interaction. The question comes after reading the following paragraphs in the WebView description page, which kind of limits the typical scenarios quite a bit:</p> <blockquote> <p>A common scenario in which using WebView is helpful is when you want to provide information in your application that you might need to update, such as an end-user agreement or a user guide. Within your Android application, you can create an Activity that contains a WebView, then use that to display your document that's hosted online.</p> <p>Another scenario in which WebView can help is if your application provides data to the user that always requires an Internet connection to retrieve data, such as email. In this case, you might find that it's easier to build a WebView in your Android application that shows a web page with all the user data, rather than performing a network request, then parsing the data and rendering it in an Android layout. Instead, you can design a web page that's tailored for Android devices and then implement a WebView in your Android application that loads the web page.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload