【问题标题】:Backround mode is not working when ionic app is close from recent?当离子应用程序与最近关闭时,后台模式不起作用?
【发布时间】:2021-10-16 09:34:53
【问题描述】:

如何在后台模式下运行连续应用程序,我使用的是 ionic 5,我已经在 android 9 + 设备上进行了测试,当我从最近删除应用程序时,它无法正常工作,后台模式也被杀死,无法正常工作。请给我任何关于该问题的建议。

提前致谢

【问题讨论】:

  • 试试这个this.platform.resume.subscribe((e) => { }); this.platform.pause.subscribe((e) => {});

标签: ionic-framework background-process ionic5 foreground background-mode


【解决方案1】:

我希望您使用 ionic 框架支持的插件之一来完成预期任务?

https://ionicframework.com/docs/native/background-mode https://ionicframework.com/docs/native/foreground-service

【讨论】:

  • 我想要解决应用程序从最近关闭时的解决方案,该应用程序正在后台运行
猜你喜欢
  • 2020-10-06
  • 2022-12-11
  • 2014-05-15
  • 1970-01-01
  • 2018-03-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多