显示推送通知
我将应用程序设置为推送通知,一切运行正常。但我希望推送通知也应该在我的应用程序运行时显示。我不想在我的应用程序中显示警报或弹出窗口
I set my application for push notification and all is running fine. But i want that push notification should also show when my application is running. I do-not want to show an alert or pop in my application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果通知应用程序当前位于前台,iOS 中没有任何内置功能可以使推送通知弹出窗口出现。您需要查看通知中获取的数据并手动创建一个
UIAlertView
。There's nothing built-in to iOS that will make push notification popup appears if the app for the notification is currently in the foreground. You need to look at the data you get in the notification and create a
UIAlertView
by hand.