2017-03-14 32 views
0

我在我的WKWebView中加載skype web,但由於沙箱應用中的插件訪問限制,skype調用未發生。什麼是正確的方式來提供訪問的Skype插件。任何線索都表示讚賞。如何在macOS中啓用沙盒App的插件連接?

我曾嘗試與沙拳擊這些鍵:

<key>com.apple.security.temporary-exception.apple-events:before:10.12</key> 
    <string>com.skype.plugin</string> 
<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key> 
    <array> 
     <string>/Library/</string> 
    </array> 

回答

0

嘗試增加一個臨時例外您的plist文件。

Key: com.apple.security.temporary-exception.apple-events 
Value: Skype plugin identifier 

更多信息: https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html

編輯:這取決於插件是如何解決的,你可能需要更改「蘋果事件」。有關更多信息,請參閱Technote。

+0

我已經試着用下面的鍵:** com.apple.security.temporary-exception.apple事件 \t com.skype.plugin **和 \t ** com.apple.security .temporary-exception.files.home後相對path.read寫 \t \t \t /庫/互聯網插件/ \t ** –

+0

是否與沙箱工作 關掉?只是爲了確保... –

+1

您仍然可以要求用戶訪問一次,並將路徑保存在安全範圍內的書籤中供以後使用。 –