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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top