Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

HTML5 Custom Homescreen Icon + Mobile Web App

  • 2 답장
  • 9 이 문제를 만남
  • 1 보기
  • 최종 답변자: mwpclark

more options

I've been learning HTML5 Game Development, and have a question about Firefox for Android: How would I get a custom icon for a bookmark added to the home screen? It looks like Firefox either uses a favicon, or a default star.

On iOS Safari, I was able to accomplish this using <link rel="apple-touch-icon" href="image.png" />, and the functionality seems to carry over to Google Chrome.

I tried using this code for a custom favicon on a specific page: <link rel='shortcut icon' type='image/x-icon' href='favicon.ico' /> but it only works when I view the file directly on the computer. When accessing the page through Apache, there is no favicon.

My other question was about Mobile Web App functionality. In iOS Safari and Google Chrome for Android, adding "apple-mobile-web-app-capable" or "mobile-web-app-capable" lets the webpage run as a fullscreen web app when saved to the homescreen. Firefox just opens it like a normal bookmark.

Any help is appreciated. I'm learning from the book 'HTML5 Game Development for Dummies.'

I've been learning HTML5 Game Development, and have a question about Firefox for Android: How would I get a custom icon for a bookmark added to the home screen? It looks like Firefox either uses a favicon, or a default star. On iOS Safari, I was able to accomplish this using <link rel="apple-touch-icon" href="image.png" />, and the functionality seems to carry over to Google Chrome. I tried using this code for a custom favicon on a specific page: <link rel='shortcut icon' type='image/x-icon' href='favicon.ico' /> but it only works when I view the file directly on the computer. When accessing the page through Apache, there is no favicon. My other question was about Mobile Web App functionality. In iOS Safari and Google Chrome for Android, adding "apple-mobile-web-app-capable" or "mobile-web-app-capable" lets the webpage run as a fullscreen web app when saved to the homescreen. Firefox just opens it like a normal bookmark. Any help is appreciated. I'm learning from the book 'HTML5 Game Development for Dummies.'

선택된 해결법

Since nobody responded to my question, I did some more thorough searching. If I insert this code:

<link rel="icon" href="/path/to/some.png" />

The bookmark has the specified icon. However, the result is disappointing because Firefox's bookmark icon appears very low-quality and blurry next to Chrome's bookmark icon.

문맥에 따라 이 답변을 읽어주세요 👍 3

모든 댓글 (2)

more options

선택된 해결법

Since nobody responded to my question, I did some more thorough searching. If I insert this code:

<link rel="icon" href="/path/to/some.png" />

The bookmark has the specified icon. However, the result is disappointing because Firefox's bookmark icon appears very low-quality and blurry next to Chrome's bookmark icon.

more options

Hey Super, same problem here. I have cleaned up the graphic and created several sizes of png files with transparent background. Chrome bookmark added to home screen displays transparency, but firefox adds a pink square background. You can view at coconutisland.com. Grateful for any answers. Mike