产品动态
公告
<meta-data android:name="com.huawei.messaging.default_notification_icon" android:resource="@drawable/图标资源名称" />
<!-- [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/图标资源名称" /><!-- 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] -->
nativeResources/android/res/drawable文件夹中,将资源文件重命名为 huawei_private_icon.png即可。如图所示:
文档反馈