Posts from Mobile

People are mobile. Our solutions are too.

July 6

Build a WebApp, everyone’s doing it!

Mobile phones have long been able to access the Web, but anyone who’s ever been to any website via their phone knows it’s an exercise in frustration. Squashed images, missing content, a postage stamp screen; it’s more scrolling than browsing. But Apple’s introduction of the iPhone and iPod Touch changed all that. Mobile Safari is a modern and fully functional web browser, and now the experience is much closer to the real thing. Companies all over the world are transforming their existing websites to target the iPhone and iPod Touch users who are now numbered in millions.

Sample WebApps: Food Network, Digg, Hotels.com, CNN, Yellowpages, Hakki.mobi

Wanting a piece of the pie, I decided to transform my website hakki.com, into an iPhone compatible one. Through research and trial/error, I came across interesting information and learned tips that I would like to share with you in hopes of making your life easier should you decide to embark on the same journey as I did. I started out by registering the domain hakki.mobi, and went to work. I had two choices: I could build a native iPhone app, or a webapp that looks and acts like a native iPhone app. Humbled by the learning curve and restrictions of building a native app, I decided a webapp is more feasible to achieve for me. As a seasoned designer, I know my way around html, flash, scripting languages and so on, but I have never built a webapp. Actually, it turns out, making a webapp for the iPhone is a lot like making a normal web site, but with a few quirks to abide by.

1. Design to mimic a “Native App”

From a usability perspective, making your web app look like a native iPhone app is beneficial because users already know how to use an iPhone application. If you mimic a native app, you won’t have to go through the whole process of designing and creating something that may in the end prove infeasible. Besides that, using the buttons, font, lists, etc is also beneficial. Here is a list of native fonts for the mobile safari browser:

Native font list for mobile Safari browser

If for whatever reason mimicking a native iPhone app does not fit your needs, make sure to consider the following:

  • Make your text legible (large fonts, sufficient contrast, etc…)
  • Always be consistent (i.e: navigation buttons on each page)
  • Make buttons large enough to tap (i.e: for fat fingers or the error-prone)
  • Make UI intuitive (i.e: collapsible boxes should have hint…like a +/- next to it)

2. Have a Homescreen Icon

This makes the most impact with the least amount of work. Design a nice icon that people can see when they add your web app to their homescreen. Make a 57×57 PNG file and add the following code inside the head tag of your home page:

<link href="path/to/your/icon.png" rel="apple-touch-icon" />

As simple as this step seems, it is the best way to quickly recognize your web app, as well as look professional while having some nice eye-candy. You don’t have to add the curved edges or the glassy effect, when a user adds the site to their home screen, iPhone OS will automatically add the effect for you. Here is an example:

Icon in original format:

Icon in iPhone homescreen:

3. Viewport!

If you want your content to look perfect on an iPhone you must use the viewport meta tag. Without it, your page may look like thumbnail. The viewport meta data goes in the head:

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

The possible values for it are as follows:

  • width=device-width
    This fits the page to the device’s width. The iPhone’s display is 320×480 pixels in portrait mode, and 480×320 pixels in landscape mode, which is why you sometimes see sites use width=320 instead of width=device-width.
  • initial-scale=1.0
    This is the scaling when the page first loads up.
  • maximum-scale=1.0
    This is the maximum scaling allowed.
  • user-scalable=0
    This determines whether the user is allowed to zoom in and out by pinching/double-tapping. You can also use user-scalable=no and user-scalable=yes instead of 0 and 1.

4. Hide the Address Bar

While the iPhone packs a lot of resolution into its relatively small screen, the address bar consumes about 60 pixels of real estate by default when a page is loaded in MobileSafari. With either 320 or 480 pixels available to the viewport, 44 of which are reserved for the bottom toolbar, it’s necessary to maxamize every available pixel.

Add this code in the body tag to hide the address bar:

<body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);"></body>

5. Preserving aspect ratio of images

I wanted to display images of my portfolio using the maximum width available by the device and retain their aspect ratios when the user switched between landscape and portrait viewing modes. Easy with the help of CSS. Create a simple class and reference it in the code:

CSS:

.work img { width:100%; }

Code:

<div class="work"><img src="images/sample_1.jpg" /></div>

6. Detect Orientation Change

You might want to run a function or perform a special task when user switches the orientation of the phone. In this example we are simply going the alert the user when they switch from landscape to portrait and visa versa.
Here’s the javascript:

function updateOrientation(){
	switch(window.orientation){
		case 0:
		alert("portrait");
		break;

		case -90:
		alert("landscape");
		break;

		case 90:
		alert("landscape");
		break;

		case 180:
		alert("portrait");
		break;
	}
}

Don’t forget to add the orientation change hook to the body tag:

<body onorientationchange="updateOrientation();">

7. Use Frameworks, Libraries, and Tools to Save Time

If you do decide to mimic a native app, then I suggest not starting from scratch. There are many things out there that can save you a ton of time. Below I’ll make a list with components you can use to develop for iPhone using only what you know, or learn only few things more.

  • Dashcode
    If you have a Mac, this may be the best route to go if you want to whip up something fast. Dashcode has a parts library(i.e: buttons/frames), a code snippets library, a workflow steps guide, and way more!
  • iUI
    iUI is a framework consisting of a JavaScript library, CSS, and images for developing iPhone webapps. Makes WebApps Look and Feel Like iPhone Native Apps
  • iWebKit
    iWebKit is a file package designed to help you create your own iPhone and iPod Touch compatible website or webapp. The kit is accessible to anyone even people without any html knowledge and is simple to understand thanks to the included tutorials.
  • XUI
    A simple javascript framework for building mobile web applications. XUI strives to be a framework for first class mobile device browsers such as WebKit, Fennec and Opera with future support under consideration for IE Mobile and BlackBerry.
  • iPhone-Universal
    The framework is based on 1 stylesheet and several HTML examples, also, it contains original artwork so you can edit them in Adobe Photoshop CS and adapt it to your projects.

8. Testing

You might not always have access to an iPhone or an iPod Touch. Although not perfect, there are emulators out there that do a decent job of replicating the iPhone OS:

  • iPhoney
    iPhoney gives you a pixel-accurate web browsing environment—powered by Safari—that you can use when developing web sites for iPhone. It’s the perfect 320 by 480-pixel canvas for your iPhone development.
  • TestiPhone.com
    This is a web browser based simulator for quickly testing your iPhone Applications. This tool has been so far tested and working using Internet Explorer 7, FireFox 2 and Safari 3 in Windows, but you ned Safari to get the real experience.

That’s it, best of luck and hopefully you will find this article useful.

March 27

In My Opinion – The Biggest Usability Shortcoming of the iPhone

We’ve all been told that we should not use our cell phone while driving. However, much like knowing but ignoring the fact that smoking and drinking is bad for our health, some of us will continue to use phones while behind the wheel. As states continue to pass laws to limit cell phone usage while on the road, usability around using Bluetooth and other hands free dialing features becomes all the more important.

At this point, some of you are probably thinking, “Just don’t use a phone while you drive.” I’m all for using the phone as little as possible when on the road – if you have to, you should definitely use a hands-free system. I’m not advocating dialing and holding your phone while you drive. However, there may be times when you receive an emergency call on the highway and can’t pull over, or times when you simply want or need to make an urgent call. Regardless of what the law is, the overall usability of a phone should be to provide a simplistic experience around how users are actually using the device, as opposed to how they should use the device.

(more…)

January 21

A New Beginning

Along with many millions of people around the world, I’ve been watching closely the transition of the presidency in the United States.  Of course that transition ended yesterday with the formal Inauguration of President Barack Obama.  An inuaguration, literally defined as a new beginning, gives us great opportunity to assess the changes around us and think about how many ‘new beginnings’ are actually happening in parallel today.

Professionally, we’ve just completed the first fully Internet-immersive election cycle in the US.   From the astounding fundraising statistics where Obama himself raised over half a billion dollars online, to the amazingingly thorough websites, massive social media outreach, and the dawn of a new generation of Twitter users and YouTube videos from the politicians themselves.  

Faces In The Crowd

Faces In The Crowd

Personally, I was blessed to have the opportunity to be in Washington for the inauguration.  Over a million joined me on the National Mall and some small percentage busily Twitter’d and Facebook’d their every emotion in real-time.  It would have been fabulous to also have some real-time location based services on my mobile to find friends and scout optimum locations.   At the same time the true digital impact yesterday is still being fully measured.  Akamai, Adweek, and many others have chronicled record levels of combined online and offline traffic including more than 7 million simultaneous data streams most carrying live video.  The informal endorsement the Obama family has provided to J Crew has resulted in extraordinary publicity, as well as equal levels of traffic to their website which have at times overwhelmed their ability to keep up.

More important than all these digital events, it was the energy and enthusiasm of every person I met that struck me as the most profound ‘new beginning’ that yesterday held for us.  From the 85 year-old woman next to me on the mall, to the fellow CEOs at a TechNet reception, to the Iranian-born cab driver on my way to the airport at the end of the day.  Universally they were all excited about the possibilities for our country and how each and every one of us can make meaningful contribution to a better future.  Whether you use an iPhone app, social media, or an old-fashioned helping hand and a smile.

 

Parade Review Stand and White House

Parade Reviewing Stand and White House

January 14

Location Based Services to All

The holy grail of marketing on mobile devices for at least the latter half of this decade revolved around the promise of location based services, or LBS. LBS mean that the network will share its knowledge of your whereabouts with an application, which in turn can react to it. For example, detecting that you are walking next to a McDonald’s location, your mobile device can suddenly pop a message on its screen telling you that you just got a coupon for a free Diet Coke if you buy a Big Mac. Built-in GPS would be the simple avenue to obtaining location data. Still, as Google Maps users on older Blackberry devices know, using cell tower information can give you a pretty decent idea where you are as well.
(more…)

November 17

Mobilizing with the Mobile Web

We’re all hearing it – the forsaken R word, the markets in disarray, you get the idea. Marketers are focused increasingly on digital, but as any good marketer should, they are likely questioning just how to reach their audience with a digital strategy that embraces emerging mediums including social media, mobile, and more traditional digital media such as online advertising. Mobile is one of the oldest of the “new” emerging technologies, and while 2009 was long poised to be a big year for mobile, it is worth taking a step back to reevaluate whether now is the right now time to be investing marketing dollars in mobile.  As marketers, we’re always looking for relevant and valuable ways to connect our brands with customers, and mobile is perhaps the most measurable, relevant, and personalized means of meeting that need.  Until recently, mobile has not been a very lucrative means of connecting with customers mainly because of low data-usage rates, clunky handset experiences with data, and slow network speeds. With the emergence of 3G networks, affordable data-plans, and brilliant new smart-phones (hut hum, namely the iPhone), customer data usage is rapidly climbing, making marketing to customers on mobile increasingly relevant, and increasingly popular.

 

Mobile is inherently unique in that it is portable, extremely personal, and now more than ever, highly measurable. Marketing for mobile, whether via messaging, advertising, mobile apps, or a mobile web presence; leverages all of these inherent unique properties of the channel. Marketers can reach users when and where information is most relevant, since the user is always connected to her mobile device. Mobile provides location-based services (LBS), provides a vehicle for instantaneous transaction and brand experience, and serves up relevant content to users leveraging demographics, handset device information, and other preferences gathered through increasingly accurate mobile usage data.  Given the measurability of mobile down to the individual user, targeted and relevant content is not only possible, but in addition, enables us to glean valuable data on click-through, participation in campaigns, time and location relevancy.

 

 

Now, navigating through the mobile ecosphere is not always easy. Where does one start?  For many marketers, the mobile web is the most natural starting point, as it is not really that much different from the traditional online site as it exists today. In simple terms, an optimized mobile web site is a streamlined version of an online site, which provides not all, but rather the most relevant content for individuals on the go, formatted for mobile, from the company’s traditional online site. For years folks have been asking if the traffic and popularity of the mobile web (or WAP, as some call it) can sustain building a site optimized for mobile. This should be less questionable in most recent months given the statistics being thrown around about trends of incredible upward usage of the mobile web.  Consider this – ABI Research sees mobile web growth continuing over the next five years, with highly capable Internet browsers on smart-phones expanding from 130 million in 2008 to 530 million by 2013! Simply incredible when you consider the opportunity to connect with so many millions of users on a device they deem so personal.  Mobile is no longer seen as a ‘nice to have’, but is rather a channel marketers are taking seriously and beginning to plan for not only in the short term, but in their longer term strategies as well.  In many ways, having a mobile presence is akin to having a website in 2000. It is expected by consumers, will drive an increasing slice of the pie of your customers’ brand experience, and if smartly executed, is a huge opportunity to add value to your customers in pertinent and meaningful ways. Don’t wait too long; it’s time to mobilize.

 

 

Technorati Profile

Browse posts by month

Browse by author

We're always looking for rockstars

Come take a look at careers with Molecular