显示推送通知

发布于 2024-12-17 08:06:38 字数 72 浏览 3 评论 0原文

我将应用程序设置为推送通知,一切运行正常。但我希望推送通知也应该在我的应用程序运行时显示。我不想在我的应用程序中显示警报或弹出窗口

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尘世孤行 2024-12-24 08:06:38

如果通知应用程序当前位于前台,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文