标签:
##场景##
if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) {
String regId = bundle.getString(JPushInterface.EXTRA_REGISTRATION_ID);
Log.d(TAG, "[JPushReceiver] 接收Registration Id : " + regId);
} else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) {
Log.d(TAG, "[JPushReceiver] 接收到推送下来的自定义消息: " + bundle.getString(JPushInterface.EXTRA_MESSAGE));
String pushMsg = bundle.getString(JPushInterface.EXTRA_MESSAGE);
if (pushMsg.contains("upload")) {
logFile = LogUtils.getLogFile(context);
if (logFile == null) return;
uploadLogToQiniuCloud(context,logFile);
return;
}
if(StringUtils.isEmpty(pushMsg)){
return;
}
createCustomerNotification(context, pushMsg);
##然后去看下七牛空间吧##
用Jpush极光推送实现实时抓取用户Log到七牛云服务器.md
标签:
原文地址:http://www.cnblogs.com/lixiaodaoaaa/p/4834897.html