Bläddra i källkod

增加推送App角标清除

Pq 2 år sedan
förälder
incheckning
47e8626142

+ 1 - 0
student/src/main/java/com/cooleshow/student/App.java

@@ -103,6 +103,7 @@ public class App extends BaseApplication {
         //用户同意之后才初始化极光推送
         JPushInterface.setDebugMode(true);
         JCollectionAuth.setAuth(this, UserHelper.isAgreePrivacy());
+        JPushInterface.setBadgeNumber(this,0);
         registrationId = JPushInterface.getRegistrationID(this);
         initBugly();
         initRong();

+ 1 - 0
teacher/src/main/java/com/cooleshow/teacher/App.java

@@ -98,6 +98,7 @@ public class App extends BaseApplication {
         //极光推送
         JPushInterface.setDebugMode(true);
         JCollectionAuth.setAuth(this, UserHelper.isAgreePrivacy());
+        JPushInterface.setBadgeNumber(this,0);
         registrationId = JPushInterface.getRegistrationID(this);
         initRong();
         initUmeng();