我在讓我的共享擴展程序顯示在谷歌瀏覽器中遇到問題。它在Safari中顯示並運行良好,但不會在Chrome中顯示。我正在使用以下激活規則,並且它也在其他應用程序(圖像,PDF,共享文本)中工作,但它從Chrome中丟失。分享擴展程序谷歌瀏覽器 - 無法正常工作
從我的info.plist:
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<string>
SUBQUERY (
extensionItems,
$extensionItem,
SUBQUERY (
$extensionItem.attachments,
$attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.text" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpeg" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.png" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image" ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf"
)[email protected] == 1
)[email protected] == 1
</string>
<key>NSExtensionJavaScriptPreprocessingFile</key>
<string>GetURL</string>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
</dict>
任何想法?
幫助了我很多,謝謝你! – oronbz
哇!非常感謝。 – Deleplace
嗨,我也想在這樣的1Password和Dashlane應用原生應用程序添加共享擴展爲克羅姆密碼自動填充不 我如何開始工作,這個你可以請給我關於一些基本概念。 需要幫助。 – Anita