ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
43 stars 46 forks source link

Won't work on iOS 18 #102

Closed lukyanov closed 3 weeks ago

lukyanov commented 1 month ago

The extension is not working on iOS 18. Could this change in another similar extension help?

RichardRaue commented 1 month ago

I second that. Not working on iOS 18. Otherwise great work, thank you!

EDIT: the suggested FIX from @lukyanov fixes the issue. As a quick fix you can override the redirectToHostApp method in your ShareViewController class. with the code mentioned in the link. Thank you!

anchao-lu commented 1 month ago

When will the update be on pub.dev?

lukyanov commented 1 month ago

I second that. Not working on iOS 18. Otherwise great work, thank you!

EDIT: the suggested FIX from @lukyanov fixes the issue. As a quick fix you can override the redirectToHostApp method in your ShareViewController class. with the code mentioned in the link. Thank you!

@RichardRaue Could you let me know how you applied the workaround? I tried this myself and couldn't make it work.

gaucidaniel commented 1 month ago

Opened a pull request with the fix discussed above. Until released, the fix can be applied by adding the following to your pubspec.yaml:

dependency_overrides:
  share_handler_ios:
    git:
      url: https://github.com/gaucidaniel/share_handler.git
      path: share_handler_ios
      ref: main
JoshJuncker commented 3 weeks ago

I'm still trying to get access to publish to pub.dev. But I still have access to the repository, and I merged the pull request. So for now you can reference the GitHub repository main branch directly. Sorry for the headache... :(

JoshJuncker commented 3 weeks ago

Good news! I was able to get access to publish again. version 0.0.22 is up now with the merged fix for iOS 18.