Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share Extension isn't working in iOS 18 #2263

Closed
1 task done
bjtitus opened this issue Oct 11, 2024 · 2 comments · Fixed by #2270
Closed
1 task done

Share Extension isn't working in iOS 18 #2263

bjtitus opened this issue Oct 11, 2024 · 2 comments · Fixed by #2270
Assignees
Labels
[Type] Bug Used for issues where something is not functioning as intended.

Comments

@bjtitus
Copy link
Contributor

bjtitus commented Oct 11, 2024

Description

The Share Extension can be used to import mp3 files but isn't working in iOS 18.

Step-by-step reproduction instructions

  1. Try to share an mp3 file from Files to Pocket Casts
  2. Expect Pocket Casts to open and import the file
  3. Nothing happens

Screenshots or screen recording

No response

Did you search for existing bug reports?

  • I have searched for existing bug reports.

Device, Operating system, and Pocket Casts app version

iOS 18, Pocket Casts 7.74

@bjtitus bjtitus added the [Type] Bug Used for issues where something is not functioning as intended. label Oct 11, 2024
@bjtitus
Copy link
Contributor Author

bjtitus commented Oct 11, 2024

@bjtitus
Copy link
Contributor Author

bjtitus commented Oct 11, 2024

Looked into this and it looks like the UIApplication.openURL(:) method that we were calling is deprecated and may be the cause of this. This dynamic calling implementation seems super fragile and is actually not possible to do purely in Swift since NSInvocation will probably be required for multiple arguments of the current UIApplication.openURL:options:completionHandler:) method.

I think this was a workaround to get around a restriction on opening the parent application from an extension.

A Today widget (and no other app extension type) can ask the system to open its containing app by calling the openURL:completionHandler: method of the NSExtensionContext class.

https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionOverview.html#//apple_ref/doc/uid/TP40014214-CH2-SW2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Used for issues where something is not functioning as intended.
Projects
None yet
1 participant