菜鸟教程小白 发表于 2022-12-11 18:54:48

ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理?


                                            <p><p>我一直在尝试在 iOS 上的 Ionic/Cordova 应用上启用多任务处理,但没有成功。</p>

<p>我已按照 <a href="https://issues.apache.org/jira/browse/CB-9161" rel="noreferrer noopener nofollow"> Support iPad multitasking in iOS 9</a> 中的步骤进行操作:</p>

<blockquote>
<p>The three rules are:</p>

<ol>
<li>Build your apps with the iOS 9 SDK </li>
<li>Support all orientations</li>
<li>Use Launch Storyboards</li>
</ol>

<p>Fix for (1) is:</p>

<ol>
<li>Use Xcode 7 (Cordova always uses the current SDK)</li>
</ol>

<p>Fix for (2) is:</p>

<ol>
<li>Click your Project icon in the Project Navigator</li>
<li>Click on your Target</li>
<li>Select the &#34;General&#34; tab</li>
<li>Go to the &#34;Deployment Info&#34; section</li>
<li>Select the &#34;iPad&#34; button segment</li>
<li>For &#34;Device Orientation&#34;, select all four checkboxes (Portrait, Upside Down, Landscape Left, Landscape Right)</li>
</ol>

<p>Fix for (3) is:</p>

<ol>
<li>Add a new File: Launch Screen --&gt; &#34;Launch Screen.storyboard&#34;</li>
<li>Click your Project icon in the Project Navigator</li>
<li>Click on your Target</li>
<li>Select the &#34;General&#34; tab</li>
<li>Go to the &#34;App Icons and Launch Images&#34; section</li>
<li>Select &#34;Launch Screen.storyboard&#34; from the &#34;Launch Screen File&#34; dropdown</li>
</ol>
</blockquote>

<p>我可以在我的应用打开之前看到新的启动屏幕出现,但我仍然无法 Split View。</p>

<p>供您引用,我正在使用 Xcode 8.2.1 的 Mac 上构建。
所有 <code>Device Orientation</code> 框都打勾,<code>需要全屏</code> 为空白。</p>

<p>有什么想法或方向可以给我吗?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我刚刚发现了问题:我使用的是 <a href="https://www.npmjs.com/package/cordova-plugin-ipad-multitasking" rel="noreferrer noopener nofollow">cordova-plugin-ipad-multitasking</a>插件解决<a href="https://stackoverflow.com/questions/33034658/deployement-error-for-ios-in-vs-cordova" rel="noreferrer noopener nofollow">this issue</a> .事实证明,这个插件阻止了多任务处理(我相信通过强制“需要全屏”选项)。删除插件解决了这个问题。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/42158282/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/42158282/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理?