-
Notifications
You must be signed in to change notification settings - Fork 45
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
Not working #2
Comments
For me, the OS seemed to reject opening the main app in a share extension (iOS). Probably mine is another issue. |
@SergiiMytakii What platform are you running on? And are you using actual device or simulator? Are you not getting any data on initial load from the getInitialSharedMedia? Or are you not getting anything from listening to the stream when your app is already open? If you download the repo and run the example, does the example work for you? |
@Shawn-sudo Did you make sure to follow the first step for iOS implementation, adding to the info.plist?
|
Work great now. thank you |
Same issue, iOS, reproduces both on simulator and real device, both getInitialSharedMedia and the stream don't receive any data. Example from the repo doesn't work either. |
@dimitchik On a real iOS device, what are you trying to share? Can you try sharing different things? Like a website from Safari, or an image from Photos. Can you also run a flutter doctor so I can see the versions you are using? |
Got the example project running after editing podfile (didn't notice it's in .gitignore). |
OK, so I finally got it working! What fixed the problem for me was adding share_handler_ios to pubspec.yaml, so it has both share_handler and share_handler_ios. Can't reproduce this issue on other projects though, so not sure what even causes it. |
@dimitchik Adding share_handler_ios explicit seems like a weird fix as it is required by the share_handler pub spec. But either way, I'm glad you got it working! |
I tried everything even the example app but it did not run in my physical device. Am running an Oppo |
Not sure what am missing |
@BrianMwas What is an "Oppo"? And what physical device? Also what flutter version? |
Oppo is a phone brand just like Samsung am using Flutter v2.10.5. So it works with every other export except WhatsApp which was what I am working on |
@BrianMwas Just to clarify, sharing to your app is working when shared from other apps, like photos or drive, but not from WhatsApp? |
Yes |
Any update @JoshJuncker |
@BrianMwas Sorry. I haven't had time recently and I don't use WhatsApp. I might be able to look into it today though. |
Same issue on iOS here, trying to share a contact (comes in the form of a vcard). App opens fine, but stream and initial function do not return anything.. Trying to share an image does give me the path of the image so that works! I am not after images though :) More testing:
|
@ultimate-tester Are you sharing all of these things from WhatsApp? If not, what apps are you sharing them from? |
Thanks for the quick response. I’m sharing from the native app on iOS for the corresponding categories: Contacts app, Photos app, Notes app, Safari. Having just tested WhatsApp (hold a message, forward, share), that also doesn’t work. Seems like nothing comes in at the flutter side. |
@ultimate-tester Interesting. I can't reproduce the notes (plain text) and safari (url) issue. Those share just fine for me on iOS. I'd make sure to follow the instructions carefully, or clone the repo and try the example project. |
Just installed the iOS example app on an a simulator: iOS 11 13.7, but the app does not appear in share targets when highlighting text in Safari and trying to share it to the app... Any tips please? :) |
PS Just tried this one and the example works out of the box on iOS Simulator 11 13.7. Hopefully we can lift some code from there to this app ;) https://github.com/JaimilPatel/ReceiveSharing |
I followed all steps, after hitting 'share' extension redirects to the containing app, but it does not receive any data
The text was updated successfully, but these errors were encountered: