Notification (icon) (banner) example please

Answered

Comments

2 comments

  • Avatar
    Max Konev

    Hi,

    The icon parameter is very straightforward. Just put URL to the square image (png format) and it will be shown as icon in the notification on Android.

    Banner is a bit more complicated. You put URL to the image and it will be shown full size as a part of the notification. There are certain things to remember: only the very first notification in the notification center can show the image. In addition Image should be ≤ 450px wide, ~2:1 aspect, the image will be centerCropped.

  • Avatar
    Gon Her

    the path of the icon and the image is local (res / drawable / icon) or external url: www.?

    thank you very much

Please sign in to leave a comment.