Share extension - App not showing in share menu on first attempt since iOS 14

Something weird seems to start happening after upgrade to Xcode 12 and iOS 14.

App use to show fine in share menu option before, but suddenly it is acting weirdly and only showing on second attempt onwards.

My aim is to get web page url. Here's my share activation rule.

Code Block
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsText</key>
<true/>
<key>NSExtensionActivationSupportsWebPageWithMaxCount</key>
<integer>1</integer>
<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
<integer>1</integer>
</dict>
<key>NSExtensionJavaScriptPreprocessingFile</key>
<string>fetch</string>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
</dict>


I have even tried on new project and added share extension with activation rule above. It also does the same, and app only show in share option from second time onwards. This issue mainly happening in Safari.

It used to work fine before iOS 14, i also didn't find anything in iOS 14 change log regarding share extension that can cause the issue. Can anyone help me pointing out where it could be wrong or some possible reason.

Thanks in advance!!!
Did you get an answer on this?

no, looks like an issue with iOS 14, i see few popular also disappear at the same time.
I have the same issue, only works on second attempt of pressing the share button in Safari on iOS
This is definitely an issue and only seems to happen with Action Extensions on Safari. If you try this on Chrome the issue doesn't happen.

Here's the feedback I submitted to Apple.

URLs opened with UIApplication.shared.open that launch Safari as the default browser will not enumerate any of the action extensions that respond to URLs the first time you tap Share. If you tap Share a second time it will display the Action Extensions.
  1. Install an app or apps that have an Action Extension that responds to a URL (i.e., Dropbox, GoodNotes, ClipDish)

  2. Install and run the test app included here which calls open function.

  3. In the app, tap "Tap Me"

This will open Safari. Then:
  1. Tap the Share button

  2. browse through the list and look for Dropbox, GoodNotes or ClipDish. You won't see them.

  3. Close the share sheet

  4. Open it again.

  5. They will appear.

This just started happening in iOS 14.

If I change my default browser to Chrome this doesn't happen so I'm pretty sure it's related to Safari.

Are there any updates regarding the issue?
I've tried this on iOS 14.1 and still see the problem.

As another data point. URLs open Safari in two ways from within my app. Tapping a link from a webview opens Safari and my extension and other extensions that handle URLs work fine.

Tapping a UI element that calls UIApplication.open(URL('the url to open")) still causes the problem
Is there any solution for this?
I’m not sure if this is something for this thread, but I found out that I couldn’t share to a lot of apps, for example: Twitter, Facebook, pocket, etc.
i also couldn’t add them.

I changed my iOS 14.2 from Dutch language to English, and voila, there they were. When I switched back to Dutch, all stayed ok.

Maybe this info is useful.
I can confirm this issue is still occurring for us on iOS 14.2 and is exactly as you described. Our share extension does not show up in the share sheet the first time you tap the share button. But if you dismiss the sheet and tap the share button again, then it will appear the second time. Sounds like it might be a iOS or Safari bug.

Interestingly enough a very similar bug was introduced in macOS Catalina 10.15 which was ultimately fixed in 10.15.4. With that bug, share extensions that used the NSExtensionJavaScriptPreprocessingFile key simply didn't appear at all.
Still dealing with this issue on my end - really strange as it seems to work 100% of the time when using WKWebView in-app but not in Safari.
I have the same issue, only works on second attempt of pressing the share button in Safari on iOS. Very frustrating and troublesome, please fix.
I've been having the same issue. Very odd, especially since it's been happening with multiple apps from the safari share extension.
My action extension also disappeared (not only in Safari but in all share sheets). Switching system language worked for me.
Hey, we also have this problem - any answer to this topic?
Same problem. Any updates?
I have same problem. Share extension is missing in safari share sheet and in app share sheet. Any updates regarding the issue ?
I was having this issue and it appears that after restarting my test device the extension shows up. I'm not sure if this behaviour persists after publishing the app to the App Store.
This is still happening today iOS 14.4 (Chrome and Safari).

Opening the share sheet twice solves this. Very frustrating.
I found a way to consistently reproduce this on iOS 14.4.1. If I go to a certain URL (which I would post, but the developer forum software will not allow it), then my sharing action in Safari doesn't show up the first time you open the share sheet, but does show up the second time you open it. This URL has an anchor on the end of it (i.e., it ends with a hash symbol followed by some text).

If I got to the same URL with the anchor removed from the end of it, my sharing action shows up the first time I open the share sheet.

I have filed FB8889913.
I have seen similar issues when sharing from the Music app. Some users reported that my action extension disappeared from the share sheet, and the only way to make it reappear is to restart the phone.
I also receive a lot of reports that my action extension disappeared after app updates. This is reported up to 14.4.1. A restart of the device always solves this issue.

I already filed a bug report some weeks ago. Really frustrating.
Yes, we are seeing the same problem after app updates. Many of our users have to restart their devices to see our extension. These problems have been going on since iOS 14.0 was released. They never happened on iOS 13.x. I have filed FB8889913 and FB9045442 and have been hoping with each 14.x release that it will be fixed, but it still happens on 14.4.1.
This is still affecting live users on iOS 14.4.2.

Kinda crazy this is still ongoing.

Has anyone had a reply from Apple on their bugs? (happy to file another, but just wondering)

I filed a bug report on this (via Feedback Assistant) in November 2020 and never heard a thing back.

Still nothing here and still affecting our apps on latest iOS.

Has anyone had an update on Apple bug tickets they have submitted?

Share extension - App not showing in share menu on first attempt since iOS 14
 
 
Q