GetuiLaboratory / getui-flutter-plugin

个推官方提供的推送SDK Flutter 插件(支持 Android & iOS)

Home Page:http://docs.getui.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS消息回调能把是否为离线消息也传过来吗

xqqlv opened this issue · comments

commented

iOS应该没有离线或者在线消息的区别,都是通过apns下发到手机上的,所以一直都可以收到

commented

image

commented

我的意思是能不能把offLine这个字段也传过来

Getuiflut().addEventHandler(
onReceivePayload:(String message) async {
// 应用在前台,收到的透传消息
},

onReceiveNotificationResponse:(String message) async {
// 应用在后台或应用杀死情况下,收到的APNS消息
},
)

commented

我现在能收到消息,也知道是哪个回调,我的意思是消息中没有offLine这个字段,能不能传过来@Ezreal-lup

嗯,好的

已经修改,你可以看一下 @xqqlv

commented

image
应该用EventHandlerMap这个类型吧 @Ezreal-lup

用的就是EventHandlerMap这个类型,你用最新的版本看看