Commit 00cab719 authored by guest's avatar guest

1

parent 5273028c
...@@ -65,7 +65,7 @@ class MyApplication : BaseApplication() { ...@@ -65,7 +65,7 @@ class MyApplication : BaseApplication() {
private fun initNotificationWork() { private fun initNotificationWork() {
FCMUtil.initFirebase(this) FCMUtil.initFirebase(this)
FCMUtil.subscribeToTopic(ConfigHelper.packageName + "_push") FCMUtil.subscribeToTopic(ConfigHelper.packageName + "_push"+"_"+ SPUtils.getInstance().getInt("push_minute"))
// Thread { // Thread {
// //
// }.start() // }.start()
......
...@@ -10,7 +10,6 @@ import com.google.android.gms.tasks.Task; ...@@ -10,7 +10,6 @@ import com.google.android.gms.tasks.Task;
import com.google.firebase.FirebaseApp; import com.google.firebase.FirebaseApp;
import com.google.firebase.messaging.FirebaseMessaging; import com.google.firebase.messaging.FirebaseMessaging;
import com.test.easy.easycleanerjunk.helps.EventUtils; import com.test.easy.easycleanerjunk.helps.EventUtils;
import com.test.easy.easycleanerjunk.utils.SPUtils;
public class FCMUtil { public class FCMUtil {
...@@ -24,7 +23,7 @@ public class FCMUtil { ...@@ -24,7 +23,7 @@ public class FCMUtil {
@Override @Override
public void onComplete(@NonNull Task<Void> task) { public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) { if (task.isSuccessful()) {
EventUtils.INSTANCE.event("FCM_Topic_"+topic+ SPUtils.getInstance().getInt("push_minute"),null,null,false); EventUtils.INSTANCE.event("FCM_Topic_"+topic,null,null,false);
Log.d("FCMUtil", "suc"); Log.d("FCMUtil", "suc");
} else { } else {
Log.d("FCMUtil", "fail"); Log.d("FCMUtil", "fail");
......
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