Remote image as notification icon in Chrome Packaged App?

236 views Asked by At

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

1

There are 1 answers

0
rodd On BEST ANSWER

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