未显示 URL 和文本的 iOS 共享扩展 [英] iOS Share extension not showing for URLs and Text

查看:27
本文介绍了未显示 URL 和文本的 iOS 共享扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用 react-native 制作了一个混合应用程序,我在为 android 设置共享时没有问题,但在 iOS 中我无法让我的应用程序出现在共享列表中.我需要 Apple Music 或任何共享 URL 的应用程序才能共享到我的扩展程序.

So I have made a hybrid application using react-native and I had no issues setting up share for android, but in iOS I am not able to make my application appear on the share list. I need Apple Music or any application that shares a URL to be able to share to my extension.

我已将以下设置添加到我的 info.plist 以用于共享扩展

I have added the following settings to my info.plist for the share extension

如果我提到图像的 NSExtensionActivationRule,我可以在列表中看到我的应用程序,但它根本不适用于 URL.我在设置中遗漏了什么吗?

If I mention the NSExtensionActivationRule for an Image, I am able to see my application on the list but it is not working for URLs at all. Am I missing something in the setup ?

更新:

我使用的是 MacOS 10.15 和 Xcode 12.4共享扩展在 iPhone 8 上的 iOS 14.2 上按预期工作,但在 iPhone X 上的 iOS 14.4.2 上没有按预期工作

I am using MacOS 10.15 and Xcode 12.4 The share extension is working as expected on iOS 14.2 on an iPhone 8 and it is not working as expected in iOS 14.4.2 on an iPhone X

在 Apple 开发者论坛上找到更多信息:https://developer.apple.com/forums/thread/662671?page=2

Found more information on Apple Developer forums: https://developer.apple.com/forums/thread/662671?page=2

如果您重新启动设备,它似乎会得到修复,这是一个未解决的问题,首先出现在 iOS 14.4.1 中

it seems to be getting fixed if you restart the device, this is an open issue and appeared first in iOS 14.4.1

发现另一个有类似问题的问题分享扩展 - 应用自 iOS 14 起首次尝试时未显示在共享菜单中

found another issue with a similar problem Share extension - App not showing in share menu on first attempt since iOS 14

推荐答案

我的 Mac OS 升级到最新版本 BigSur 后似乎已修复,共享扩展再次正常显示

It seems to be fixed since I upgraded my Mac OS to the latest version BigSur, Share extensions are showing up normally again

这篇关于未显示 URL 和文本的 iOS 共享扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆