如何关闭前台推送弹窗-iOS?
X*医生
发布于 4 年前
5542来自北京消息推送 U-Push
移动统计 U-App
SDK集成与升级
API调用
功能使用
产品建议
setAutoAlert:NO这个api不好用
userNotificationCenter-willPresent中 {
...
UMessage.setAutoAlert(false)
UMessage.didReceiveRemoteNotification(userInfo)
...
}
userNotificationCenter-didReceive中 {
...
UMessage.setAutoAlert(false)
UMessage.didReceiveRemoteNotification(userInfo)
...
}
这么写也不好使,前台还是可以收到推送弹窗,目前的状况就是:应用在前台时,弹了两层alert,一个是有盟的,一个是自定义的