How to change default Android bookmark icon?

I keep getting the default ribbon bookmark icon for Android, instead of the 114x114 icon for the web application. Ideas?

I tried...

<link rel="apple-touch-icon" href="/icon.png"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"/> <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-114x114-precomposed.png"/> 

I also tried an approach similar to: if (useragent == blackberry) {Use precomposed / use 114x114-precomposed}

In all cases, I still get the default ribbon icon, and the icon is in the center of the ribbon. Can't create an Android homepage icon that looks like a native app?

I have iOS and BlackBerry devices, but I'm out of luck with androids. It also doesn't matter which browser I use.

Do I need to have the full path , including the location of the domain? Other ideas?

+4
source share
1 answer

take a look at this;)

Setting up web applications for Android

or

http://www.mollerus.net/tom/blog/2010/06/web_app_homescreen_icons_in_android.html

this is

it should work, it may not work because your path is wrong, make sure that your image is in the root of your web server, because you have included '/' in front of your path.

+1
source

Source: https://habr.com/ru/post/1383075/


All Articles