android - 您需要至少调用一次 create() 来创建单例
问题描述
我正在处理地理定位后台任务,当我运行应用程序时一切正常,但是当关闭或重新启动应用程序时,消息显示。
我实际上正在使用这个包进行背景地理定位 https://github.com/mauron85/react-native-background-geolocation
还有用于反应原生的 OneSignal SDK。
OS: Windows 10 CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz Memory: 3.86 GB / 11.88 GB Binaries: Node: 10.16.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 19, 23, 25, 26, 27, 28, 29 Build Tools: 26.0.3, 28.0.3, 29.0.1 System Images: android-23 | Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64 IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.8.6 => 16.8.6 react-native: ^0.60.5 => 0.60.6
我正在卸载 OneSignal 和后台地理定位 - 仍然显示消息。
解决方案
推荐阅读
- devexpress - 使用 ThemeBuilder 自定义 DevExpress MVC 仪表板样式表
- python-3.x - 梯度提升分类器
- vuejs2 - 如何制作一个可以一次性更改内部逻辑和父级数据的组件事件
- python - /accounts/register/ 处的 ConnectionRefusedError
- node.js - 如何在 SharePoint Server 2013 中部署 Node js Rest API
- sql - 如何在 SQL 中优化联合
- linux - mosquitto-clients 安装命令在 Linux 服务器上不起作用
- node.js - 如何使用 mongodb 更新嵌入字段中的数组
- google-apps-script - 运行宏以更新通过数据连接器链接到 db 的工作表时获取“不支持数据源类型”
- java - 凌乱的弦。最后排除'@'字符的正则表达式