反应本地背景任务 - 重复15分钟?

发布于 2025-01-21 21:00:06 字数 672 浏览 0 评论 0原文

以下问题:在库中的反应中,反应 - 背景fetch可以在后台执行任务。例如,发送推送通知。我在课程中查看了以下示例: https://medium.com/@alihaghani/background-tasks-and-local-push-notifications-with-react-native-native-native-d63fc7fff9b

“写道,不可能在15分钟的间隔下运行任务。有人知道我仍然可以每分钟还是每2分钟执行任务?

如果没有,是否有人可以解决以下问题: (最小示例)我有一个应用程序,可以在您所在地区搜索蓝牙连接。当找到信号时,然后显示推送通知。它每分钟都在搜索信号。当然,这应该发生在背景中。为此,应在15分钟以下检查。 这有可能与反应有关吗?

我已经构建了一个显示推送通知的应用程序。我已经用firebase实施了这一点。我认为,Firebase将无法在这里为我提供帮助,因为仅在应用某个逻辑时才发送推送通知,对吗?

感谢任何能给我一些想法甚至解决问题的人

The following question: In React-Native via the library react-native-background-fetch it is possible to execute a task in the background. For example to send a push notification. I looked at the following example in the course: https://medium.com/@alihaghani/background-tasks-and-local-push-notifications-with-react-native-d63fc7fff9b

Now in the documentation of "react-native-background-fetch" it is written that it is not possible to run a task under 15 minutes interval. Does anyone know how I can still run a task for example every minute or every 2 minutes?

If not, does anyone have a solution for the following problem:
(minimal example) I have an app that searches for Bluetooth connections in your area. When a signal is found, then show a push notification. Every minute it searches for a signal. This should happen in the background of course. For this it should be checked under 15 minutes.
Is this somehow possible with react-native?

I have already built an app that displays push notifications. I have implemented this with Firebase. In my opinion, Firebase will not be able to help me here, because the push notification is only sent when a certain logic applies, right?

Thanks to anyone who can give me some thought or even a solution to the problem

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文