I want to add my icon in Nearby notification message as attachment which I am creating using google proximity beacon api using com.google.nearby/en namespace
How to add icon in Nearby notification using google proximity beacon api
209 Views Asked by Deval Shah Khambhati At
2
There are 2 best solutions below
0

Are you referring to the Favicon Icon displayed on the left side with Notification Message and URL? To do that, Your URL need to pass the following Google Favicon Rules:
- Favicon Icon size must be greater than 32x32.
- It shouldnt be SVG format (PNG/ICO/JPG is acceptable).
Favicon link tag must be inside
<Head>
tag<link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico?v=4f32ecc8f43d">
Let me know if that's work for you.
The icon that shows on a Nearby Notification is based on the favicon of the target website. You don't add it as an attachment in the Google Beacon Dashboard, but rather, just make sure your target website has a favicon installed that complies with favicon rules (see Vaibhav's answer on this for more details).