Newer
Older
NotifyInfo / notifyApp / app / src / main / java / me / notify / notifyinfo / ExampleApplication.java
bello on 9 Sep 2019 590 bytes 更新震动
package me.notify.notifyinfo;

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() {
         super.onCreate();

         JPushInterface.setDebugMode(true); 	// 设置开启日志,发布时请关闭日志
         JPushInterface.init(this);     		// 初始化 JPush
    }
}