Jan
10
Written by:
Paul Rony
1/10/2008 7:35 AM
First a little background. One of the new features of SplendidCRM 2.0 is the detection of a mobile-based browser. Within days of release, a customer requested support for a BlackBerry, and iPhone and an iPod.
Our first instinct was to search the UserAgent Request variable for any of the keywords found in the most common mobile browsers. This seems to be a very popular technique for the PHP crowd. Digging a little deeper, we found the collection of .Net 2.0 browser files at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers. Then, we found that we could add our own application-specific to the App_Browsers folder. The trick is to chain the app-specific profile to the last detected browser ID.
Once we knew what we were looking for, we were pleased to find a BlackBerry profile on CodeProject at http://www.codeproject.com/KB/aspnet/BlackberryASPNET.aspx, but we were surprised that we did not also find pre-constructed profiles for the iPhone or the iPod on Google. In any case, we have created iphone.browser and itouch.browser files and we have included them in the project. We would provide publicly available links to these files, but ASP.NET blocks external access to these files. So, if you want them, you will have to either install SplendidCRM or contact our support staff and have them email you the files. Obviously, we prefer that you evaluate SplendidCRM.
Tags: