0

when I use a Vector drawable (54x54) it works fine. Similarly when I replace the vector drawable with SVG of same size (it doesn't matter I guess), it doesn't show up in the notification bar instead it shows a default icon.

Narshim
  • 679
  • 8
  • 13
  • I believe you questioned is answered in [This](https://stackoverflow.com/questions/34016107/can-we-use-vectordrawable-or-vectorxml-as-icons-for-push-notifications-in-androi) – Alex R Jun 14 '19 at 20:08
  • If I am not wrong, It talks about the vector drawables which is working for me :) – Narshim Jun 14 '19 at 20:12
  • 1
    SVG as in the raw svg file? If it is, then android cannot use it directly, you have to convert it to a vector drawable. – Israel dela Cruz Jun 15 '19 at 04:51
  • oops!! yes it is a raw svg file, thanks for the information – Narshim Jun 15 '19 at 05:35

1 Answers1

1

UPDATE 2020

You can now use a .svg file. Or well... At least you can drop a .svg file in Android Studio and it will take care of generating all the correct files for all Android versions.

Check here: https://stackoverflow.com/a/62876054/8634342

Tafel
  • 793
  • 6
  • 15