Thursday, November 20, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Mainstream Forums  Bugs  Beta2 - isMobil...
 Beta2 - isMobile doesn't seem to detect mobiles...
 
spacecowboy
176 posts
5th
Joined
11/21/2007

Beta2 - isMobile doesn't seem to detect mobiles...
Posted: 07 Jan 08 12:03 PM Modified By spacecowboy  on 1/7/2008 12:05:33 PM)
I just added

Is mobile? <%= !this.IsMobile %>

In my login page and as expected it prints False if you look at it with a browser... However If you point a phone at it it also prints False so something is akimbo here...

As a result it doesn't load the mobile theme when you use a mobile device

Do you have any more information so we can debug this?



support
2094 posts
1st
Joined
1/3/2006

Re: Beta2 - isMobile doesn't seem to detect mobiles...
Posted: 07 Jan 08 12:57 PM
We are using the .NET methods to determine if the browser is on a mobile phone.  Try to also dump Request.Browser.Capabilities["isMobileDevice"].  I suspect that it is also returning false.
spacecowboy
176 posts
5th
Joined
11/21/2007

Re: Beta2 - isMobile doesn't seem to detect mobiles...
Posted: 08 Jan 08 4:32 AM

Your suspicions are confirmed.

Request.Browser.Capabilities["isMobileDevice"] returns false for IE6, Mozilla and Safari

IE packed with Windows Mobile 5 it also returns false
IE packed with Windows Mobile 6 Professional also returns false

Will test on my blackberry in a minute

Note I'm running windows authentication off

 

spacecowboy
176 posts
5th
Joined
11/21/2007

Re: Beta2 - isMobile doesn't seem to detect mobiles...
Posted: 08 Jan 08 4:44 AM Modified By spacecowboy  on 1/8/2008 5:08:27 AM)

Note: I just stick the following in my login/loginview.ascx

User Agent:<b><%= Request.UserAgent %></b><br />
Browser:<b><%= Request.Browser.Browser %></b><br
/>
Version:<b><%= Request.Browser.Version %></b><br
/>
IsMobile?:<b><%= this.IsMobile %></b><br
/>
isMobileDevice?:<b><%= Request.Browser.Capabilities["isMobileDevice"] %></b><br />

To get the scoop - for example the old ipaq returns

User Agent: HPiPAQhw6900/1.0/Mozilla/4.0(compatible; MSIE 4.01;Windows CE; PPC; 240x240)
Browser:
Mozilla
Version:
4.0
IsMobile?:
False
isMobileDevice?:false

And the other thing returns:

User Agent: Xda Orbit; 240x320(compatible; MSIE 6.0;Windows CE; IEMobile 6.12)
Browser:
Unknown
Version:
0.0
IsMobile?:
False
isMobileDevice?:false

And the Sony Ericson 900 Cybershot returns:

User Agent: Mozilla/5.0 (x11; u; linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 MG (Novara-Vision/6.1)
Browser:Firefox

Version:1.5.0.7

IsMobile?:
False
isMobileDevice?:false

Still haven't done the blackberry - sometghing wrong with my edge connection :-(

 

support
2094 posts
1st
Joined
1/3/2006

Re: Beta2 - isMobile doesn't seem to detect mobiles...
Posted: 08 Jan 08 9:45 AM

I'm surprised that your iPAQ is not working.  Ours is working just fine, so is our Motorola Q.  Our iPAQ is only a year old, so that might explain things.

In any case, it would seem that we have to write our own mobile detection code.  If you can spare the time, please do a little of the research for us and point is to some good documentation on how to detect a mobile browser.

  Mainstream Forums  Bugs  Beta2 - isMobil...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.
SplendidCRM and SplendidCRM Software are trademarks of SplendidCRM Software, Inc. SugarCRM is a trademark of SugarCRM Inc. in the United States, the European Union and other countries. All other trademarks used in this web site are the property of their respective owners.