简体   繁体   English

当应用进入后台模式时,XMPP应用发送消息

[英]XMPP App send message with when app enter background mode

I use the apns to push messages to my app, when it run in background. 当它在后台运行时,我使用apn将消息推送到我的应用程序。 But APNS sometimes delay is very serious. 但是APNS有时延迟非常严重。

So how about try to set VOIP and set xmppStream.enableBackgroundingOnSocket = YES; 那么如何尝试设置VOIP并设置xmppStream.enableBackgroundingOnSocket = YES; in order to replace APNS when app run at background ?or we combine the two approaches use. 以便在应用程序在后台运行时替换APNS?或者我们将两种方法结合使用。

What i consider are the following points : 1.how long a app can run in background,when we set a VOIP? 我认为有以下几点:1.当我们设置VOIP时,一个应用可以在后台运行多长时间? 2.does anyone have succeeded when use VOIP that appStore did't reject ? 2.有人使用appStore没有拒绝的VOIP成功吗?

ps: sorry for my English,and Here's a reference a link ! ps:对不起,我的英语,这是一个参考链接 THX in advance 提前THX

You need to implement real VOIP calls to be approved with VOIP capabilities. 您需要实施实际的VOIP呼叫,才能通过VOIP功能进行批准。 Check the following XMPP VOIP extensions: Jingle and Jingle RTP . 检查以下XMPP VOIP扩展: JingleJingle RTP Another way: use SIP with XMPP, check CUSAX RFC. 另一种方式:将SIP与XMPP一起使用,检查CUSAX RFC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM