Differentiating Based on USER_AGENT

Throughout this chapter, we have talked about how you can build applications that work well on multiple devices by taking the time to identify exactly what device is accessing your application. This is a simple thing to do and can be accomplished in any programming language that you prefer to work with. The key to identifying the client is flexibility and open-ended pattern matching. Although it would be very difficult, and nearly impossible, for you to differentiate your application for every WAP device on the market, you are best served by focusing on three cases. The three "super classes" of devices that you should take the time to consider are the UP.Browser from Phone.com (which can be found in devices ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.