update:2021.04.26

fix:
add:加入极光推送,发送正在运行的app信息
This commit is contained in:
FHT
2021-04-26 18:14:14 +08:00
parent d23777e680
commit 5da934cf7e
20 changed files with 1497 additions and 38 deletions

View File

@@ -0,0 +1,22 @@
package com.android.uiuios.jpush;
import android.app.Application;
import cn.jpush.android.api.JPushInterface;
/**
* For developer startup JPush SDK
*
* 一般建议在自定义 Application 类里初始化。也可以在主 Activity 里。
*/
public class ExampleApplication extends Application {
private static final String TAG = "JIGUANG-Example";
@Override
public void onCreate() {
Logger.d(TAG, "[ExampleApplication] onCreate");
super.onCreate();
JPushInterface.setDebugMode(true); // 设置开启日志,发布时请关闭日志
JPushInterface.init(this); // 初始化 JPush
}
}