tencent cloud

Feedback

Customized Icon

Last updated: 2024-06-13 10:21:45

    Android

    Supported Vendors

    Huawei and Google FCM support Customized Icon; other manufacturers do not support Customized Icon, and by default, use the App Icon.

    Configuration Method

    Method 1

    The component will automatically parse and update the Customized Icon related to Application Project Configuration; otherwise, it will use the default App Icon of the application.
    Huawei:huawei_private_icon.png
    FCM:fcm_private_icon.png
    
    
    

    Method 2

    Effective when configured in the main project's Manifest File:
    Huawei
    Google FCM
    <meta-data android:name="com.huawei.messaging.default_notification_icon" android:resource="@drawable/Icon Resource Name" />
    <!-- [START fcm_default_icon] --> <!-- Set custom default icon. This is used when no icon is set for incoming notification messages. See README(https://goo.gl/l4GJaQ) for more. --> <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/Icon Resource Name" />
    <!-- Set color used with incoming notification messages. This is used when no color is set for the incoming notification message. See README(https://goo.gl/6BKBk7) for more. --> <meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@android:color/white" /> <!-- [END fcm_default_icon] -->
    Note:
    FCM Icon Requirements:
    Small icon must be a PNG image with Alpha transparency channel.
    Background must be transparent.
    Avoid leaving excessive padding around the icon.
    It is recommended to use 46 x 46px uniformly. Smaller images will be fuzzy, while larger ones will be automatically scaled down by the system.

    iOS

    Custom definitions are not supported; the App Icon is used by default.
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support