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
Support for share extension in iOS Flutter app #16712
Comments
I've the same issue. I want to share the browser url into my app. A Share Extension might help. But how to integrate that with Flutter? |
It looks like the answer is: I'm not sure there is much to use Fluter for here. The Share Extension shows up in another process, so I suspect it would not be wise to try and bring Flutter code along with, but rather the entire Share Extension should probably be written in Obj-C or Swift. As far as I can tell this is very different from how Android works, where your actual app would receive the intent (rather than just an extension, paired with your app, which gets loaded briefly into another process during the share action). |
Wondering if anyone had experience implementing share extensions in Flutter apps? I'm gonna need this feature as well. |
I implemented a share extension in my flutter app time ago and it worked till about a month ago.
If i remove the share extension, my app reworks. Anyway this night i'll post the steps for create it |
@romaluca you probably need to check Build Settings of your share extension and remove everything that tries to import Cocoapods from your main project. At least that's how I solved it in my case. What I managed to get:
If anyone can figure out how to use plugins like Firebase in the extension it would be really great. The best solution would probably be to embed Flutter into the platform view of share extension. ReactNative guys seems to have figured out how to achieve this so I can imagine it should be doable with Flutter too? |
I also need something like this. Does anyone have any news on available plugins? |
I've edited the Runner workspace to add an Action Extension. When I 'flutter build ios' it just builds the extension and not the runner app. It looks like they are looking for the last target in the project and building that? Seems like they should just build the entire Runner app workspace which should allow the developer to do everything they would in a regular Xcode project (frameworks, extensions etc..). |
or expose the invocation of xcrun in a script so iOS developers can control the process |
found it in flutter/packages/flutter_tools/bin/xcode_backend.sh |
Any update for this issue ? |
Does anyone have any pointers for implementing this? |
I just built a library for this and it's working good so far. here is the link https://pub.dev/packages/receive_sharing_intent/ |
Amazing @KasemJaffer does it support sharing urls from the browser too? |
@cdharris not for now. The library supports sharing photos only. |
is there any documentation "How do I handle incoming intents from external applications in Flutter" for ios ? |
Hi @KasemJaffer
, but I can build it and run in XCode however when I share images to the app, it does not show anything "the number of shared file" is still 0 Did I config wrong somewhere? |
@pulyaevskiy I have create an empty flutter project and add ShareExtension using Xcode. But how to clean Cocopods for the building errors for device only bellow? Run
|
If I remember correctly when you add share ext to flutter project it inherits a bunch of configuration, including importing cocoapods. I had to go over all include paths for share extension and remove cocoapods from there. Not s huge expert in Xcode though. |
@pulyaevskiy Thank you, Because the setting is same as a So I confused which part would cause build different. That's why I was guess if it's related to any flutter script. Update(Workable Solution)After
|
Hi @mrbm |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
https://flutter.io/flutter-for-android/#how-do-i-handle-incoming-intents-from-external-applications-in-flutter
Got this to work...but https://flutter.io/flutter-for-ios is empty....
One of the exciting things of flutter is the write once run ios/android...been working magically...until this road block.
Wondering if one of the people on the flutter team more knowledgable than me could add the recipe of how to handle incoming data from external applications into my flutter app in ios.
An example of what I am looking to do in ios that matches the handling incoming intents in android, can be found here:
https://medium.com/@ales.musto/making-a-share-extension-that-accepts-text-and-urls-in-combination-with-coredata-swift-3-a0139c0f9800
Thanks for all your hard work, its been fun!
The text was updated successfully, but these errors were encountered: