TencentCloud / TIMSDK

Tencent Cloud Chat features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication.
https://trtc.io/products/chat
2.56k stars 2.76k forks source link

iOS APNS监听未生效 #924

Open zhuangxq opened 3 years ago

zhuangxq commented 3 years ago

issue标题:APNS监听未生效

【平台】iOS 【版本号】5.1.2 【集成包】:TXIMSDK_TUIKit_iOS_Professional 【机型】:如iPhone 12 Pro

【描述您的问题】

这个接口设置一个实现该协议的类,并没有调用。(ps: 接入方如果有其他消息push,App桌面图标小红点目前暂没有自定义的机制。包括app进程有在运行和没在运行情况)

操作方式: 登录成功后调用setAPNSListener, 收到新消息(前后台状态),没有这个监听的回调。

协议实现方式:

extension IMManager: V2TIMAPNSListener {
    func onSetAPPUnreadCount() -> UInt32 {
        return 100
    }
}

V2TIMManager.sharedInstance()?.setAPNSListener(IMManager.shared)

【有无日志或者截图】:暂无日志(有日志附上日志),有截图附上问题截图

Tencent-Alice commented 3 years ago

您好,是调用setAPNSListener: 退到后台拿不到此监听回调?还是您的未读回调没有触发? 技术问题,欢迎私信

zhuangxq commented 3 years ago

您好,是调用setAPNSListener: 退到后台拿不到此监听回调?还是您的未读回调没有触发? 技术问题,欢迎私信

您好,是拿不到此监听回调。 未读回调有触发

Tencent-Alice commented 3 years ago

基本了解,需要收集日志排查 Q 2562367495 详情具体聊,备注来意