ios - 反应原生iOS如何在获得新的远程通知后制作后台进程,而无需打开应用程序
问题描述
我使用 react-native-firebase 来获取远程通知,我希望在获取远程通知(仅限数据)后在后台执行一些处理,而不打开应用程序(不点击通知)。
我在 android 中使用 Headless JS 实现了这一点。
我真的很想找到如何在 iOS 中做到这一点
我读到:
通知服务扩展 - https://developer.apple.com/documentation/usernotifications/unnotificationserviceextension
https://github.com/react-native-webrtc/react-native-voip-push-notification
但我没有让它工作,也许有人有这种情况的经验?
解决方案
推荐阅读
- javascript - 如何在选择选项 HTML 标记中设置两个不同的值?
- javascript - 如何根据用户选择隐藏表单字段?
- vba - 读写文件导致“该进程无法访问该文件,因为它正在被另一个进程使用”错误
- python - 如何读取 plist 中的响应字符串?
- python - 如何从列表列表中提取特定的键、值对并将其添加到数据框中?
- python - python循环期间的正则表达式错误
- sbt - How to create new SBT configuration with its own Main?
- node.js - 如何在 Loopback 4 上将文件作为下载流式传输?
- java - 如何在连接四游戏中确定获胜者?
- kubernetes - Kubernetes Traefik Ingress 收到错误的网关错误