2016-11-02 6 views
0

YouTubeにアクセスできるようにするにはどうすればIonic Appを入手できますか?ionic IOSはYouTubeにアクセスできます

私は追加したいしませんでした:

<allow-intent href="*"/> 

しかし追加:

allow-intent href="https://www.youtube.com/*"/> 

効果はありません、私が間違って何をやっていますか?

答えて

0

あなたはApp Transport Securityの世話をしましたか?デフォルトあたりのiOS9以降、リクエストはすべてブロックされます。明示的に特定のホストをホワイトリストに登録するか、機能を完全に無効にする必要があります。

Apple's description right hereをご覧ください。

Xcodeプロジェクトのinfo.plistに設定を追加します。

ホワイトリスト特定のサーバー:

<key>NSAppTransportSecurity</key> 
<dict> 
    <key>NSExceptionDomains</key> 
    <dict> 
    <key>yourserver.com</key> 
    <dict> 
     <key>NSIncludesSubdomains</key> 
     <true/> 
     <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> 
     <true/> 
     <key>NSTemporaryExceptionMinimumTLSVersion</key> 
     <string>TLSv1.1</string> 
    </dict> 
    </dict> 
</dict> 

無効にATSは完全に(Apple社が推奨するとアプリの拒否()につながるかもしれないではない!):

<key>NSAppTransportSecurity</key> 
<dict> 
    <key>NSAllowsArbitraryLoads</key> 
    <true/> 
</dict> 

推測これはあなたの問題を解決する可能性があります。 :)

関連する問題