【发布时间】:2020-07-05 20:05:37
【问题描述】:
根据文档:https://rnfirebase.io/messaging/usage 我想显示来自 firebase 但具有自定义配置的背景通知,例如自定义图标、自定义数据和点击通知时的自定义功能。
// index.js
import { AppRegistry } from 'react-native';
import messaging from '@react-native-firebase/messaging';
import App from './App';
// Register background handler
messaging().setBackgroundMessageHandler(async remoteMessage => {
console.log('Message handled in the background!', remoteMessage);
});
AppRegistry.registerComponent('app', () => App);
如何自定义?
【问题讨论】:
标签: firebase react-native notifications customization message