Android 反应本机fcm本地通知

Android 反应本机fcm本地通知,android,ios,react-native,push-notification,localnotification,Android,Ios,React Native,Push Notification,Localnotification,我正在尝试将来自的本地通知集成到我的应用程序中。我想每天通知用户一次,第一次通知应该在活动加载后24小时内推送。目前,IOS系统每分钟都会出现通知,而android系统则无法预测。也许,它可能是一个缓存,因为在“repeat_interval”设置为“minute”之前,但-app已经重新安装 请解释为实现目标遗漏了什么或应该改变什么 如果能看到一些react本地fcm本地通知的工作示例,那将是非常好的 提前谢谢 componentDidMount() { this.loadInitialSta

我正在尝试将来自的本地通知集成到我的应用程序中。我想每天通知用户一次,第一次通知应该在活动加载后24小时内推送。目前,IOS系统每分钟都会出现通知,而android系统则无法预测。也许,它可能是一个缓存,因为在“repeat_interval”设置为“minute”之前,但-app已经重新安装

请解释为实现目标遗漏了什么或应该改变什么

如果能看到一些react本地fcm本地通知的工作示例,那将是非常好的

提前谢谢

componentDidMount() {
this.loadInitialState().done();
FCM.requestPermissions();
FCM.getScheduledLocalNotifications().then(notif => {
  if (notif.length === 0) {
    FCM.scheduleLocalNotification({
        fire_date: new Date().getTime() + (1 * 60 * 60 * 1000),
        id: 'UNIQ_ID_STRING',
        body: 'Do you have rooms available right now?',
        repeat_interval: 'day',
        show_in_foreground: true,
        large_icon: 'ic_launcher',
        icon: 'ic_launcher',
    });
  }
});
}