iOS消息回调能把是否为离线消息也传过来吗
xqqlv opened this issue · comments
xqqlv commented
monkeydbobo commented
iOS应该没有离线或者在线消息的区别,都是通过apns下发到手机上的,所以一直都可以收到
xqqlv commented
xqqlv commented
我的意思是能不能把offLine这个字段也传过来
monkeydbobo commented
Ezreal-lup commented
Getuiflut().addEventHandler(
onReceivePayload:(String message) async {
// 应用在前台,收到的透传消息
},
onReceiveNotificationResponse:(String message) async {
// 应用在后台或应用杀死情况下,收到的APNS消息
},
)
xqqlv commented
我现在能收到消息,也知道是哪个回调,我的意思是消息中没有offLine这个字段,能不能传过来@Ezreal-lup
Ezreal-lup commented
嗯,好的
Ezreal-lup commented
已经修改,你可以看一下 @xqqlv
xqqlv commented
应该用EventHandlerMap这个类型吧 @Ezreal-lup
Ezreal-lup commented
用的就是EventHandlerMap这个类型,你用最新的版本看看