在 iOS 中创建持久通知 [英] Create a persistent notification in iOS

查看:27
本文介绍了在 iOS 中创建持久通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以创建在 iOS 中无法关闭的通知?它甚至可以是一种解决方法(例如,侦听要清除的通知并在此之后显示新的通知).

Is there any way to create a notification that cannot be dismissed in iOS? It can even be a workaround (e.g. listening for the notification to be cleared and showing up a new one just after that).

推荐答案

没有.你可以安排一堆通知,但那是不同的.无法监听通知何时被解除、将其保留在屏幕上或执行任何更改其性能的操作,因为它们都在您的应用程序之外处理.

No. You could schedule a bunch of notifications but that's different. There is no way to listen to when the notification is dismissed, keep it on the screen, or do anything that changes it's performance as it's all handled outside of your app.

这篇关于在 iOS 中创建持久通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆