菜鸟教程小白 发表于 2022-12-12 22:54:32

ios - 应用程序在 iOS 10.1.1 上无法在后台运行


                                            <p><p>我正在开发聊天/通话应用程序。为了让它在后台模式下工作,我启用了这些模式:
<a href="/image/lE5CO.png" rel="noreferrer noopener nofollow"><img src="/image/lE5CO.png" alt="enter image description here"/></a> </p>

<p>在 iOS 9.3.4、iOS 10 上运行良好。<br/>
工作意味着它在后台接收消息、调用、响应服务器,即使没有正在进行的调用。 </p>

<p>当我在 iOS 10.1.1 的 iPhone6 上运行它时,它在进入后台时停止响应。</p>

<p>有人遇到过这种情况吗?找到解决方法了吗?</p>

<p>我正在使用 <strong>Xcode8.2 Beta</strong></p>

<p>我也尝试过启用<strong>Background Fetch</strong>模式,但没有帮助!</p>

<h2>更新</h2>

<p>在 iOS 10.1.1 上<strong>只有在通话过程中</strong>才会在后台工作。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>其实我在网上看了各种资料,上面说<strong>iOS10停止支持VoIP应用的后台应用执行</strong>。<br/>
要在后台运行 VoIP 应用程序,没有办法。</p>

<p>我的应用程序在 iOS10 的后台运行是因为我在 Xcode 7 上针对 iOS9 SDK 构建它。</p>

<p>我们唯一能做的就是使用 <strong>PushKit 框架</strong> 并获得 VoIP 静默通知以在后台唤醒应用程序!</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 应用程序在 iOS 10.1.1 上无法在后台运行,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/40781246/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/40781246/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 应用程序在 iOS 10.1.1 上无法在后台运行