Last post Aug 10, 2010 10:40 AM by amar_j
Sep 28, 2009 02:28 PM|Diego M. S.|LINK
I just started developing web apps for mobile devices and downloaded the file mobile.browsers from http://mdbf.codeplex.com to have more info about the devices that land on my page.
I would like to know why is the property IsMobileDevice = false in the case of iphone and Nokia N95 (those are the devices where I noticed this problem so far).
Sep 29, 2009 03:54 AM|SKT_01|LINK
The Mobile Device Browser File detects devices like Nokia N95 or Apple iPhone correctly. Therefore you are not using the .browser file correctly in your project.
Sep 29, 2009 03:58 PM|Diego M. S.|LINK
Correct me if I am wrong, but as far as I know you only need to drop the file on the folder App_browser/devices and you are ready to start using the info in it, therefore, I don't think I am using the file incorrectly as you say. I am just querying Request.Browser.IsMobileDevice
and it comes back false when it should be true.
I you have the answer to that I would apreciate.
Sep 30, 2009 12:59 AM|SKT_01|LINK
I cannot believe this because I have tested the Mobile Device Browser File with standard User Agents of iPhone and N95. I always get
true for the isMobileDevice property.
You have to ensure that you have no other browser or device definitions in your project than MDBF from CodePlex.
Another reason could be that the device you are using is not sending the standard User Agent because the carrier could have changed it. This is impropable but you should check this.
Oct 06, 2009 04:28 PM|Diego M. S.|LINK
I've created an empty project, tryed again...same thing :(.
BTW I am using ASP.NET 2.0
Oct 09, 2009 12:28 PM|Activate|LINK
Have you already found a solution to your problem? I have it too: IsMobileDevice stays false!
Oct 12, 2009 10:19 AM|matrixvibe|LINK
Instead of using Codeplex file i would suggest you to make use of http://www.51degrees.mobi/Products/NETMobileAPI/tabid/86/Default.aspx because of following
- Free open source ASP.NET mobile API
- Automatically determine if a mobile device is accessing the site and redirect it to mobile specific content without changing existing .aspx pages.
- Gives upto date mobile device capability information using WURFL database widely-accepted as the most advanced and up-to-date Lmobile device database available. Same database is used by the
Bank of America, MySpace and
Admob among others.
- Multi Threaded, Memory Efficient, Seamless Deployment, Quick & Accurate, supports transcoders
We are using in our developments and is very useful and easy to implement than Codeplex. Please review above link and you will get idea.
If you want to see sample implementation please look at
Aug 10, 2010 10:40 AM|amar_j|LINK
51degrees.mobi Foundation API which detects all mobile devices is a .NET open source available on Codeplex now http://51degrees.codeplex.com/releases.
It easily detects if the request is coming from any mobile device and redirects user to mobile landing page. It has some user friendly samples to try out.