菜鸟教程小白 发表于 2022-12-11 18:31:28

ios - 直接分享图片到 WhatsApp


                                            <p><p>我想直接将图像分享给 WhatsApp,而不显示任何中间 Controller ,例如 UIDocumentInteractionController 或 UIActivityController。</p>

<p>WhatsApp 官方文档没有提到直接分享图片,乍一看直接分享似乎是不可能的。</p>

<p>但我知道这是可能的。 App Store 中至少有 2 个应用可以做到:</p>

<ol>
<li>“粘性人工智能”</li>
<li>工作流程 <a href="https://itunes.apple.com/us/app/workflow/id915249334?mt=8" rel="noreferrer noopener nofollow">https://itunes.apple.com/us/app/workflow/id915249334?mt=8</a> </li>
</ol>

<p>Workflow 是如何做到的?
提前致谢。</p>

<p>更新:我在这里发现了一些有趣的东西:<a href="http://resources.infosecinstitute.com/ios-application-security-part-30-attacking-url-schemes/#gref" rel="noreferrer noopener nofollow">http://resources.infosecinstitute.com/ios-application-security-part-30-attacking-url-schemes/#gref</a> .
提示存在“whatsapp://image/%@”网址方案。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>通过 LeoNatan@github 找到解决方案。完美运行。</p>

<p> <a href="https://github.com/LeoNatan/LNExtensionExecutor/" rel="noreferrer noopener nofollow">https://github.com/LeoNatan/LNExtensionExecutor/</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 直接分享图片到 WhatsApp,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/45787307/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/45787307/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 直接分享图片到 WhatsApp