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).
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.
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 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.
- 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
BBC,
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.
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.
None
0 Points
13 Posts
mobile.browsers IsMobileDevice = false with Nokia N95
Sep 28, 2009 02:28 PM|Diego M. S.|LINK
Hi people,
<div id="ctl00_ctl00_MasterContent_Content_PostRepeater_ctl00_BodyDiv">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).
Thanks
</div>Participant
1154 Points
429 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
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.
None
0 Points
13 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
Sep 29, 2009 03:58 PM|Diego M. S.|LINK
Hi SKT_01,
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.
Thanks
<div style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;" id="_mcePaste"> </div>Participant
1154 Points
429 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
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.
None
0 Points
13 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
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
None
0 Points
3 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
Oct 09, 2009 12:28 PM|Activate|LINK
Hello,
Have you already found a solution to your problem? I have it too: IsMobileDevice stays false!
Kind greetings,
Jeroen
Member
602 Points
171 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
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 BBC, 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 http://dotnetslackers.com/articles/aspnet/Mobile-Device-Detection-and-Redirection-Using-ASP-NET.aspx
Thanks
Member
2 Points
55 Posts
Re: mobile.browsers IsMobileDevice = false with Nokia N95
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.
-Thanks