Mobile skin 2.3.9.4 not working or mobile not detected

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/21/2012 5:39:18 PM
Gravatar
Total Posts 7

Mobile skin 2.3.9.4 not working or mobile not detected

Hello,

In the new version 2.3.9.4 the mobile skin is not working or the mobile device is not detected.

Problem was tested with Samsung Nexus with Android 4.2 browser chrome, opera and integrated browser

mojoportal.com is showing desktop version

my install of 2.3.9.4 is showing desktop version

my install of 2.3.9.3 is working fine and showing mobile skin

If someone can confirm the problem with another mobile platform, thank you.

 

Mathias

11/22/2012 10:01:12 AM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Mathias,

Yes, there was a change in this regard. Generally tablets should use the main site skin which if neccessary can be optimized for tablets using responsive design techniques. Previously we were treating all Android devices as mobile, but we updated it according to this article which shows a difference bentween Android phone and Android tablet user agent strings making it possible to only use the mobile skin for phones (which is what it was designed for).

So my advice is to only use the mobile skin for mobile phones as this is what it was devevloped for and tablets are generally very good browsing experiences which can use the main site skin. The default setting was updated like this:

<add key="MobilePhoneUserAgents" value="iphone,ipod,android; mobile,iemobile" />

However if you prefer the previous functionality of treating all Andorid devices as if they were all phones you can add this to user.config:

<add key="MobilePhoneUserAgents" value="iphone,ipod,android,iemobile" />

Hope that helps,

Joe

11/22/2012 8:18:40 PM
Gravatar
Total Posts 7

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Joe,

Thank you for all your info and your time for my issue.

With the default settings <add key="MobilePhoneUserAgents" value="iphone,ipod,android; mobile,iemobile" /> all browser on android "mobile" device are displaying the desktop version and not the mobile skin I tested it with mojoportal.com and it's not a good solution with small screens. The only browser who display the correct mobile skin is firefox.   

After reading the article I came with a simple solution to update my user.config is 

<add key="MobilePhoneUserAgents" value="iphone,ipod,mobile,iemobile" />

Am I correct ? This setting will pick up the fragment "mobile" in the user agent string so we do not have to worry about the fragment "android" anymore because every android phone will have the fragment mobile in it and not the tablet.

It will be nice if someone can confirm what I have noticed with android phone, please.

Thanks again for your time Joe

Regards

Mathias 

11/23/2012 8:25:24 AM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Mathias,

I will make that change to the default setting, you are right that the word "mobile" should be sufficient. I don't have any Android devices for testing myself when I made the change based on that article.

Best,

Joe

1/23/2013 2:48:08 PM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Matthias,

Unfortunately I'm going to have to back this change out and find another solution because it is making ipads use the mobile skin instead of the main site skin. Apparently ipad has the word mobile in its user agent string.

Best,

Joe

2/7/2013 9:56:09 PM
Gravatar
Total Posts 7

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Joe,

Thanks for your info.

I researched a little and I think the best way to handle that will be to have something like that:

<add key="TabletUserAgents" value="ipad" />

or

<add key="DesktopUserAgents" value="ipad" />

so we can decide for some value to redirect to non-mobile, if you see what I mean. But the best solution would be to have different user agent standard for mobile and tablet from the manufactures !

Regards,

 

Mathias

2/9/2013 12:48:28 PM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

In the next release of mojoPortal I will add in code for a specific check for Android Phones since it requires 2 fragments.

Best,

Joe

3/1/2013 10:09:53 PM
Gravatar
Total Posts 7

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Joe,

I think mojoportal is missing to detect some mobile. I ran some test with this software http://mite.keynote.com/how-it-works/mite.php  and mojoportal.com is showing the desktop/tablet version in BlackBerry and Nokia mobile for example.

I found this website http://detectmobilebrowsers.com who seems to detect most of the mobile (not all) and ignore tablet like Ipad and other. It's open source and scripts are available with the regex to detect the useragent.

Regards

Mathias

 

3/5/2013 11:26:57 AM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Mathias,

For Mobile Kit Pro and mobile in general we are only targeting the major smart phones not all phones such as Nokia (We do support the newer Nokia Windows Phones but not other Nokia devices). For Mobile Kit Pro specifically we are targeting/supporting iPhone, Android Phones, and Windows Phones. We don't officially support Blackberry with Mobile Kit Pro because we have no test devices but we have been told it works and people can add blackberry to the user agent fragments config setting to make it use the Mobile Skin for Blackberry or maybe I will add it to the default setting even though we don't "officially" support it. 

For tablets the main skin should be used and responsive design techniques can be used by designers to optimize it for tablets.

We have no need to detect more devices specifically since it is not a goal to support all devices but only the major smart phones iPhone, Android, Windows. Blackberry is having its last gasp of breath as it circles the drain in my opinion so there are really only 3 major smart phone platforms with a future, but even if you consider Blackberry as still a major smart phone platform it does work if added to the config setting. Beyond those 4 platforms is not a goal for us currently so we don't have need to detect them.

One still could add a user agent fragment for other platforms ie probably the word nokia could be added for non windows Nokia devices but if Mobile Kit Pro does not work well on those other devices it is not something we support so it isn't something we would try to fix or add special handling for, it would be a your mileage may vary kind of thing.

Best,

Joe

3/7/2013 10:11:46 PM
Gravatar
Total Posts 7

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Joe,

Thank you so much for your point of view on mobile detection. You make the point. It's clear and we can always customs to fit special requirements in the user.config.

How can we detect two fragments in the user agent string ? This way <add key="MobilePhoneUserAgents" value="iphone,ipod,android + mobile,iemobile" /> ? or <add key="MobilePhoneUserAgents" value="iphone,ipod,android - mobile,iemobile" /> what is the separator ?

My question is not only for android, but in a near future firefox os is coming and the user agent is describe in this article. The word mobile will be in the user agent string and conflict also with Ipad string!

Thanks again for all your help and great advices. 

Regards,

Mathias

3/8/2013 2:53:09 PM
Gravatar
Total Posts 18439

Re: Mobile skin 2.3.9.4 not working or mobile not detected

Hi Mathias,

In the latest version of mojoPortal we added special handling to detect the 2 fragments for android phones. I'm not convinced that Firefox OS will ever become a major phone platform with significant adoption, but if needed we will add special handling to detect it. The config setting only works for single fragments but at the moment Android phone is the only one where we needed to add special handling to detect it. So you no longer need to add anything to that setting for android phones if you use the latest version of mojoPortal since we have other detection for it already built in. If Firefox OS gets past its struggles and does start to become widely adopted then we will add handling for it but for now it there exist no phones on the market at all that I know of, there are plans for release in 2014 but we will wait and see if anyone buys them.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.