1、变更推送为阿里云推,清除云信IM以及推送内容;
2、消息页面全新改版; 3、部分微小Bug修复
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// MPGerneralDefinition.h
|
||||
// CloudPushSDK
|
||||
//
|
||||
// Created by junmo on 16/10/11.
|
||||
// Copyright © 2016年 aliyun.mobileService. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef MPGerneralDefinition_h
|
||||
#define MPGerneralDefinition_h
|
||||
|
||||
#import "CloudPushCallbackResult.h"
|
||||
|
||||
typedef void (^CallbackHandler)(CloudPushCallbackResult *res);
|
||||
|
||||
// 保证callback不为空且回调不在主线程上执行
|
||||
#define NotNilCallback(funcName, paras)\
|
||||
if (funcName) {\
|
||||
if ([NSThread isMainThread]) {\
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\
|
||||
funcName(paras);\
|
||||
});\
|
||||
} else {\
|
||||
funcName(paras);\
|
||||
}\
|
||||
}
|
||||
|
||||
#endif /* MPGerneralDefinition_h */
|
||||
Reference in New Issue
Block a user