I have created heads up notification in my app. In that I have used my app icon in notification also. But that didn't displayed. Instead of that getting square shape icon. Searched regarding that issue and found that above lollipop this occurs. Also found ways to create icon for above lollipop. Converted my app icon(png) to svg format. This works fine for me. I am able to get icon in my app notification. But I really confused that what I have done is a right format or not? If not what is the best way of doing that. Please any body give me a proper explanation about this. 

I know to set small icon as well as large icon. I have setted my notification small icon in svg format. Thats displying in my notification perfectly...What I want to know is, setting svg format icon in notification small icon is the right way to do?