Apple 推送通知锁定 iPhone 4s 屏幕
我有一个应用程序过去可以毫无问题地接受推送通知,但自从我升级到 4s 后,我注意到在应用程序不在前台时发送推送会锁定我的屏幕。当我发送推送时,我的手机屏幕会变成空白并出现旋转,然后锁屏键盘出现。有人知道为什么会发生这种情况吗?我的朋友在 ios4 上有 iphone 4,似乎推送得很好。这似乎是不可能的,因为它可能会被流氓应用程序开发人员滥用
I have an app that used to accept push notifications without any issues but since I upgraded to a 4s, I'm noticing that sending a push while the app is not in the foreground locks my screen. The moment I send the push, my phone's screen goes blank with a spinner and then the lock screen keyboard comes up. Anybody have any idea why this is happening? My friend who has a iphone 4 on ios4 seems to be getting the pushes fine. This seems like a something that should not even be possible because it could be abused by rogue app developers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己也遇到过这个。这就是正常警报的样子:
我发送了“声音”:“”并得到了与您完全相同的错误。如果您不想随消息一起发送声音,则根本不要发送声音位。
坏的:
{
"aps" : { "alert" : "这是警报文本", "badge" : 1, "sound" : "" }
}
好的:
{
"aps" : { "alert" : "这是警报文本", "badge" : 1 }
}
I just ran into this myself. This is what a normal alert looks like:
I was sending "sound":"" and got the exact same bug you were getting. If you do not want to send a sound with your message, don't send the sound bit at all.
bad:
{
"aps" : { "alert" : "This is the alert text", "badge" : 1, "sound" : "" }
}
good:
{
"aps" : { "alert" : "This is the alert text", "badge" : 1 }
}