|
/

如何关闭前台推送弹窗-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,一个是有盟的,一个是自定义的

5个回答
 
4 年前
来自上海

提交一个工单咨询一下https://account.umeng.com/feedback/create

 
4 年前
来自北京

UMessage.setAutoAlert(false) 你不要放在 didreceiveremotenotification接收消息的时候调研,在初始化UMessage的时候调用。

 
4 年前
来自浙江省

你好,你是要关闭推送吗

Loading ...
登录社区,分享你的经验