当应用程序被杀死时,iOS推送通知

编程入门 行业动态 更新时间:2024-10-09 21:19:02
本文介绍了当应用程序被杀死时,iOS推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道当应用程序从后台被杀死时,WhatsApp如何处理视频推送通知.考虑到单击了应用程序图标而不是通知.

I was wondering how does WhatsApp handle the Video Push Notification when the app is killed from the background. Taking into consideration that the app icon is clicked and not the notification.

1-推送通知每5秒钟不断显示

1- The Push Notification keeps showing every 5 seconds

2-铃声只播放一次,尽管该应用持续显示推送通知约30秒钟.

2- The Ringtone plays single time although the app keeps showing push notifications for around 30 seconds.

推荐答案

您可以使用iOS VoIP推送通知来完成. VoIP推送使应用程序即使在后台也可以激活,并被用户强行杀死.所有语音和视频呼叫应用程序都使用此优先级推送服务.

You can do it using iOS VoIP Push Notifications. VoIP push enables apps to become active even in the background and forcefully killed by user. All voice and video calling application use this priority push service.

这里很棒 Apple语音指南IP(VoIP)最佳做法.主要用例之一–使用VoIP推送通知来避免持久连接.

Here is great Apple guide about Voice Over IP (VoIP) Best Practices. One of the main use case – use VoIP Push Notifications to Avoid Persistent Connections.

要使用VoIP推送,您必须连接 iOS PushKit框架.您可以配置您自己的服务器或其他第三方提供商.

In order to use VoIP pushes you have to connect iOS PushKit framework. You can config your own server or other third party provider.

更多推荐

当应用程序被杀死时,iOS推送通知

本文发布于:2023-11-27 11:14:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637839.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被杀   应用程序   死时   通知   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!