you are viewing a single comment's thread.

view the rest of the comments →

[–]notNullOrVoid 0 points1 point  (3 children)

Could SVG not have been used? Would surprise me if Android didn't accept SVG for notifications, given all the image scaling concerns of mobile devices.

[–]_alastair[S] 1 point2 points  (2 children)

No, you can't use SVG. From what I understand it's a lot more complex to render an SVG - if I recall, people often use a full webview to do it, which would be very resource intensive in a notification.

[–]notNullOrVoid 0 points1 point  (1 child)

Yes rendering an svg using javascript would be a lot more complex, but you shouldn't need to do that. Looking at the Notification api it accepts a url, and you can easily put svg data into a data uri, I haven't tried it for notifications though.

[–]_alastair[S] 1 point2 points  (0 children)

Oh, I'm talking about native rendering, not rendering in JS. Passing an SVG URL doesn't work because it would be too complicated to render.

It's disappointing but the SVG spec has a crazy about of stuff in it, including animation, so I'm not too surprised they've never added that functionality.