Pregunta

I'm writing this app and would like to display Chrome notifications with certain remote images as notification icons.

I am aware that you are not allowed to directly assign the URL of a remote image as the notification icon, so I assume I would first have to download the remote image via some sort function and then use the now local image as a notification icon.

How could this be achieved?

Thanks in advance

¿Fue útil?

Solución

Like sowbug mentioned in his comment, this can be done through Data URL. Documentation and example can be found in Google's documentation at: http://developer.chrome.com/apps/app_external

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top