how to set the icon of push notification?

Comments

4 comments

  • Avatar
    Dmitry Dyudeev

    Hello,

    Actually, in the "Icon" field in your Control Panel you can specify only a URL to some image file stored outside of the application (for instance, on your server). In case you would like to use a custom icon that is stored in the bundle of your app, you can use the "android_icon" section of the createMessage request; unfortunately, at the moment it is not possible via Control Panel, although it is definitely on our roadmap.

  • Avatar
    Roberto Alvarez Ceballos

    Hi,

    Could you please clarify how to use a different icon for the push notification? I don't want to use an image url I want to use one of my drawable inside the project. You mentioned android_icon in the section create message, but I don't understand what you meant by that.

    Thanks.

  • Avatar
    Gary Fenton

    This question is unanswered. I'm also trying to set android_icon to point to a PNG file in the app's resources. I've tried loads of ways of specifying a path but only the default icon is shown, not my one.

  • Avatar
    Gary Fenton

    The only way to define an icon for PNs is to do nothing and the PW plugin (for PhoneGap at least) will automatically use the icons defined in config.xml. It's not the ideal solution as I'd like to specify the icon with each PN.

Please sign in to leave a comment.