Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Apple 的 PushKit 开发 VoIP 应用程序。当应用程序处于后台或未运行时,我能够接收通知。但是,我不知道如何在必要时打开显示器并响起电话,例如在传入 VoIP 呼叫的情况下。
您可以安排本地通知,使用推送工具包或任何您的应用程序永远不会出现在前台,手机永远不会打开。
使用本地通知,您可以将声音文件设置为 30 秒。
您可以每 30 秒重复一次,直到用户对本地通知采取行动。
本地通知可以有操作按钮。