简体   繁体   English

反应本机通知图标不起作用

[英]React Native Notification Icon Not working

I've added and generated notification icons which have white fill and transparent background but still white box is appearing in the notification tray. 我添加并生成了具有白色填充和透明背景的通知图标,但通知托盘中仍出现白色框。

I'm sending notifications from server. 我正在从服务器发送通知。 What's the solution? 有什么解决方案?

在此处输入图片说明

Took out the answer my self. 我自己回答了这个问题。 Above implementation is correct, but I was sending icon field from the server too, i think that was overriding. 上面的实现是正确的,但是我也从服务器发送了图标字段,我认为这很重要。 After removing that, it worked charming! 删除后,它很迷人!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 反应本机通知图标不适用于三星 - React native notification icon not working on Samsung 在 Android 中计数的 React Native 通知徽章图标 - React Native notification badge icon with counting in Android Icon.button 正在工作,但 Icon.ToolbarAndroid 在本机反应中不起作用 - Icon.button are working but Icon.ToolbarAndroid are not working in react native 反应本机ToolbarAndroid操作图标不起作用 - React native ToolbarAndroid action icon not working 使用React Native Firebase时Android上的预定通知无图标 - Scheduled notification without icon on Android when using React Native Firebase 如何更改 React Native(android) 应用程序的远程推送通知图标 - How to change remote push notification icon for React Native(android) application 如何将 React Native 应用程序中的通知图标用于某些 RNBridge? - How use notification icon from React Native app to some RNBridge? Firebase 通知 setSound() 不适用于 React-Native - Firebase notification setSound() not working with React-Native react-native-fcm android通知不起作用 - react-native-fcm android notification not working React Native Onesignal OnPressed通知在发行版本中不起作用 - React Native Onesignal OnPressed notification is not working in release build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM