一个cordova解决方案:
https://github.com/Red-Folder/bgs-core
看起来好复杂
看来不管用什么方案,都要有android基础才行。
关于android服务的学习:
https://www.cnblogs.com/huolongluo/p/6340743.html
https://blog.csdn.net/a704225995/article/details/56481934
官方文档:
https://developer.android.com/training/run-background-service/create-service?hl=zh-cn