Commit 1e4b43e8 authored by wanglei's avatar wanglei

...

parent 84bca32b
...@@ -33,8 +33,10 @@ class MyApplication : BaseApplication() { ...@@ -33,8 +33,10 @@ class MyApplication : BaseApplication() {
} }
fun initApp() { fun initApp() {
val topic = ConfigHelper.packageName + "_push"
FCMManager.initFirebase(this) FCMManager.initFirebase(this)
FCMManager.subscribeToTopic(packageName + "_push") FCMManager.subscribeToTopic(topic)
LogEx.logDebug(TAG, "topic=${topic}")
NewComUtils.requestCfg { NewComUtils.requestCfg {
ScreenStatusReceiver.setupScreenStatusListener(this) ScreenStatusReceiver.setupScreenStatusListener(this)
val timerStatus: Int = AppPreferences.getInstance().getString("timerS", "1").toIntOrNull() ?: 1 val timerStatus: Int = AppPreferences.getInstance().getString("timerS", "1").toIntOrNull() ?: 1
......
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