禁用应用程序时,在特定时间显示本机显示消息(React Native display message at certain time when app is disabled)

编程入门 行业动态 更新时间:2024-10-08 10:53:52
禁用应用程序时,在特定时间显示本机显示消息(React Native display message at certain time when app is disabled)

如何在某个时间让React Native在设备上触发某种消息,即使该应用当前未被选中或完全关闭,该怎么办?

How is it possible to have React Native trigger some kind of message on the device at a certain time, even if the app is currently not selected or closed down altogether?

最满意答案

我只想使用推送通知。 这是你需要设置服务器端的东西,但听起来你有一个很好的用例。 您需要为此设置权限等。

也许本地通知的一个很好的用例可以看看React Native Docs

I would simply use a push notification. This is something you will need to setup server side but it sounds like you have a good use case. You will need to setup permissions etc for this.

Maybe also a good use case for local notifications take a look at React Native Docs

更多推荐

本文发布于:2023-07-30 15:15:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1338787.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:本机   应用程序   消息   时间   在特定

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!