Skip to content

Fix URL Opening from Share Extension on iOS 18+#36

Open
martatesar wants to merge 3 commits intoEternallLight:masterfrom
martatesar:master
Open

Fix URL Opening from Share Extension on iOS 18+#36
martatesar wants to merge 3 commits intoEternallLight:masterfrom
martatesar:master

Conversation

@martatesar
Copy link
Copy Markdown

Updated the implementation to support opening URLs from the share extension on iOS 18 and above.
Replaced the deprecated openURL approach with a method adapted from this Stack Overflow solution, translated to Objective-C.

…ller

Implemented openURLModern to handle URL opening in a way that supports iOS 18.0 and later, while maintaining compatibility with earlier versions. Updated sendResults method to utilize the new openURLModern method for better performance and reliability.
…ndling

Replaced the openURLModern method with a simplified openURL implementation to enhance URL handling in ShareViewController. Updated the sendResults method to call the new openURL method, ensuring consistent behavior across iOS versions.
Enhance error handling in willMoveToParentViewController method

Updated the willMoveToParentViewController method in ShareViewController to include error handling when accessing the _hostBundleID property. Added debug and warning logs to improve traceability and maintain functionality across iOS versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant