Skip to Content


You must be Logged on to comment or reply to a post.

  1. Boghyon Hoffmann

    An alternative way to set (not only) a favicon is to use the property homeIcon from sap.m.Shell or the API In this way, the favicon can be retrieved dynamically which will be then appended to the document once it’s ready.

    With Shell:

    sap.ui.getCore().attachInit(function() {
    		manifest: true,
    		name: "myComponentName"
    	}).then(function(createdComponent) {
    		], function(Shell, ComponentContainer) {
    			new Shell({
    				homeIcon: {
    					favicon: "img/favicon.ico",
    					phone: "img/logo_57px.png",
    					"phone@2": "img/logo_114px.png",
    					tablet: "img/logo_72px.png",
    					"tablet@2": "img/logo_144px.png",
    					precomposed: false // whether the home icons already have some glare effects (for iOS)
    				app: new ComponentContainer({
    					component: createdComponent,
    					height: "100%"

    Without Shell:

    ], function(jQuery) {{
    		favicon: "img/favicon.ico",
    		// ...



Leave a Reply