ipu的trunk版ios客户端工程

IPUYunBaPushPlugin.h 1.3KB

    // // IPUYunBaPushPlugin.h // IPUPush // // Created by 秋林 on 2019/1/22. // Copyright © 2019 Asiainfo. All rights reserved. // #import <IPUMobile/IPUMobile.h> #import "IPUPushProtocol.h" #define YUNBA_PUSH @"yunba_push_key" #define ALIAS @"ALIAS" #define MSG @"MSG" #define TOPIC @"IPU" @interface IPUYunBaPushPlugin : IPUPlugin <IPUPushProtocol> @property (strong, nonatomic) NSString *recCallbak; @property (strong, nonatomic) NSString *alias; #pragma mark - JS调用插件 /** * 推送平台注册(使用云巴推送) * 插件名:registerForPushWithYunba */ - (void) registerForPush:(NSArray *)args; /** * 推送平台注销(使用云巴推送) * 插件名:unregisterForPushWithYunba */ - (void) unregisterForPush:(NSArray *)args; /** * 向指定用户发送文本信息(使用云巴推送) * 插件名:sendTextWithYunba */ - (void) sendText:(NSArray *)args; /** * 设置收到信息后的监听回调函数(使用云巴推送) * 插件名:setCallbackForPushWithYunba */ - (void) setCallbackForPush:(NSArray *)args; #pragma mark - other /** * 在 Backgound 下,收到推送的处理方法,若无实现,使用默认方式实现 */ - (void)backgroundMessageHandle:(NSNotification *)notification; @end