[英]Push notification not received in ios 6 and ios 7
Push notifications are received badge number is increase and the sound is played or there is vibration, but I am not able to see the notification in top banner or not see the alert. 收到推送通知徽章数量增加并且声音播放或振动,但是我无法在顶部横幅中看到通知或看不到警报。 saw the settings they are proper.
看到了正确的设置。 I tried by changing both alerts and notification but only sound is there.
我尝试通过更改警报和通知来进行尝试,但仅存在声音。 Please help.
请帮忙。
In your php script you missed 在您的PHP脚本中,您错过了
$body['aps'] = array(
'alert' => $message,
'sound' => 'default',
'badge' => 1
)
Alert tag that's why you got sound and badge number but not able to show notification. 警报标签是您获得声音和徽章编号但无法显示通知的原因。 And also please check your application notification setting.
另外,请检查您的申请通知设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.