当应用程序被杀死时,iOS推送通知 [英] iOS Push Notification When app is killed

查看:386
本文介绍了当应用程序被杀死时,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推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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