How to turn your SharePoint site into a native app with 5 lines of code

The web has changed and things have moved on, not really a shock, but the evolution of the latest web browsers is changing things.  In particular Internet Explorer 9 allows you to take any site you see on the web and turn it into a native application by simply dragging a tab down to the task bar.  If you think that pinning a site isn’t overly useful consider some of the stats that the process drives, Huffington post drove views by users visiting their site through pinning up by 11%…now translate that to your SharePoint site, your intranet.  Your users could be finding more stuff through the intranet, saving them some time.  The cost? a few lines of simple code.

What you need to do

Rather obviously I’m only going to describe the steps for SharePoint 2010, you can probably work them out for other versions just fine.

Open your SharePoint site using SharePoint designer (you’ll need to get SharePoint designer from here if you don’t already have it) and open your site.  Then you’ll need to:

  1. Select Master Pages from the left Site Object pane
  2. Select the v4.master document and check it out to change it
  3. Select the code view
  4. Enter the code, which you’ll see listed below the picture.

HTML pinning

So this is the code you need to enter and it needs to go within the <head> and </head> tags, I’d suggest placing this code towards the end of the HTML header. 

  1. <meta name="application-name" content="Fourth Coffee Intranet" />
  2. <meta name="msapplication-tooltip" content="All the latest info @ 4th" />
  3. <meta name="msapplication-window" content="width=1200;height=600" />
  4. <meta name="msapplication-task" content="name=Main Page;action-uri=http://sharepoint;icon-uri=http://sharepoint/SiteAssets/SitePages/Home/4th.ico"" /
  5. <meta name="msapplication-task" content="name=FAST Search;action-uri=http://sharepoint/fast;icon-uri=http://sharepoint/SiteAssets/SitePages/Home/4th.ico"" />
  6. <meta name="msapplication-task" content="name=My Site;action-uri=http://sharepoint/my;icon-uri=http://sharepoint/SiteAssets/SitePages/Home/4th.ico" />

Now that you know where it goes, lets walk through the code, line by line to understand what it does.

  1. We provide a name for the application, all Windows apps need something to identify them after all
  2. We configure a tool tip that will appear when hovering over the pinned icon before it’s launched
  3. We setup the size of the window when it initially opens
  4. Now for the meat, lines 1 to 3 are enough to be able to pin the app, but it’s time to do something more…  Jump lists! that increased page usage involves having fast access to pages from jump lists, so in lines 4-6 we configure the Jump lists.  Lets break down the line:
  • meta name="msapplication-task" tells IE that we’re defining a jump list item.
  • content="name=Main Page;  tells IE what to name the jump list item, the user sees this.
  • action-uri=http://sharepoint; tells IE what address the jump list points to.
  • icon-uri=http://sharepoint/SiteAssets/SitePages/Home/4th.ico tells IE what icon to use for the jump list item….ahh we’re into favicons…

You will also need to create a favicon, I use icoFX which is free and can take a normal image and turn it into an ico file.  You’ll also want to do the same thing to create a nice custom icon for the SharePoint site, so simply do that and ensure you save it with a 256×256 pixel size.  Finally to make this icon the favicon for your site you’ll need to edit one more line…

<SharePoint:SPShortcutIcon runat=”server” IconUrl=”xxxx”>

Here you need to change the IconUrl value to be the location of the new favicon on your SharePoint server, this will be the same icon that is used on the toolbar and in the top left of the browser window.

Going further

In a future post I’ll show you how to take this simple code and do more with it, isolate it from browsers that don’t support it and create overlays of the icon on the task bar to show you there new things.

Comments (3)

  1. lucy says:

    Great post from your hands again. I loved the complete article. By the way nice writing style you have. I never felt like boring while reading this article. I will come back & read all your posts soon. Regards, Lucy.

  2. showbox says:


    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets.
    It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings.

    Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above
    all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.
    Movie Box, an esteemed movies application in which you can find stacks of programs and films. The guide is given here to download Movie Box app to Android and to Apple iOS 9.0.2, iOS 8.4/8.3 and also for the lower versions without Jailbreak.
    Please do login to Showbox application with the help of Ymail. You can login in Ymail from here –
    Sign Up & Do registration for latest movies on Showbox application