Commit 5062b40e authored by wanglei's avatar wanglei

...fcm

parent 347ad865
......@@ -24,6 +24,7 @@ import com.base.scanqr.fcm.work.RepeatingWorker.Companion.schedulePeriodicWork
import com.base.scanqr.helper.EventUtils
import com.base.scanqr.helper.InstallHelps
import com.base.scanqr.helper.NewComUtils
import com.base.scanqr.service.StayJobService.Companion.startJob
import com.base.scanqr.ui.start.StartActivity
import com.base.scanqr.utils.ActivityManagerUtils
import com.base.scanqr.utils.AppPreferences
......@@ -139,11 +140,6 @@ class MyApplication : Application() {
PackageStatusReceiver.registerPackageStatusReceiver(this)
BatteryStatusReceiver.registerBatteryStatusReceiver(this)
kotlin.runCatching {
// startJob()
}
//workManager
schedulePeriodicWork(appContext)
......@@ -155,6 +151,12 @@ class MyApplication : Application() {
//开启上报队列
MyNotificationManager.startNotificationQueue()
//前台服务
kotlin.runCatching {
startJob()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment