1
我正在創建一個應用程序,允許用戶將他們的存摺從iOS錢包分享到我的應用程序。它在以前工作,但是我將認證和供應配置文件從企業更改爲分發後,我的應用從iOS錢包共享列表中缺失。我不知道出了什麼問題。非常感謝有人可以引導我走向正確的道路。在ios錢包分享傳遞列表中找不到我自己的應用
我正在創建一個應用程序,允許用戶將他們的存摺從iOS錢包分享到我的應用程序。它在以前工作,但是我將認證和供應配置文件從企業更改爲分發後,我的應用從iOS錢包共享列表中缺失。我不知道出了什麼問題。非常感謝有人可以引導我走向正確的道路。在ios錢包分享傳遞列表中找不到我自己的應用
我發現了這個問題的解決方案。 我們只需要使用'SUBQUERY'在NSExtensionActivationRule中手動添加所有支持的數據類型。
例如:
SUBQUERY (
extensionItems,
$extensionItem,
SUBQUERY (
$extensionItem.attachments,
$attachment,
(
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.png"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpeg"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpg"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpeg-2000"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.vcard"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.apple.pkpass"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
)
)[email protected] == 1
)[email protected] == 1
}