SharepointDesigned.com SharePoint Branding and Beyond

29Mar/110

See SharePoint through eyes of mobile device from desktop

When doing a mobile solution for SharePoint it helps to be able to get a quick view at what its going to look like without having to get that emulator working or uploading it to the cloud so then you can test it from your iPhone's internet.

SharePoint 2010 reads the User Agent being sent from the browser to determine whether it is a mobile device or not, all you need to do is adjust the User Agent being sent to mimic a mobile device.

There are two methods that I have found work;

Safari Developer Tools

  1. Get Safari if you don't already have it
  2. Go to the Advanced tab in Preferences/Options and check the Show Develop menu in menu bar check box
  3. Select Develop > User Agent from the menu and select iPhone or iPod Touch
  4. Alternatively you can enter an alternate User Agent String by selecting Other... and entering string

User Agent Switcher - FireFox Extension

  1. Get and installĀ User Agent Switcher add-on for FireFox by Chris Pederick
  2. A set of User Agents already come with extension, you can also add additional User Agents

I personally recommend the User Agent Switcher extension for FireFox.

User Agent Strings

Here are some popular User Agent Strings that I have found and seem to work ok, let me know if they work for you ok. Also be interested to find out any more that you use! More can be found at Zytrax.com and WURFL.

iPhone 4.1

Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7

iPhone 4.3

Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F190 Safari/6533.18.5

Windows 7

Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0)

Posted by Luke

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.