Suraj Patil
Flutter Developer
Great article, thanks! I have prod and dev flavors in my project, and there is a certain problem with them. Share works for builds with both flavors, but recordSentMessage only works for prod env. Conditionally I have app bundles 'com.bla.bla' + 'com.bla.bla.dev' and groups 'group.com.bla.bla'+'group.com.bla.bla.dev'. Do you have recordSentMessage working for all your environments?
I suspect an example of what it looks like without flavors would be helpful.
… and despite the detail here, this doesn't work for me at all (the app doesn't appear in the share menu on iOS).
Some advice about how to diagnose such problems would be very useful.
Great piece.
Note that pod install --repo-update gives an error:
[!] No podspec found for share_handler_ios_models in .symlinks/plugins/share_handler_ios/ios/Models
until the project has been built at least once, at which point Flutter has created the referenced symlink.
App not appearing in ShareSheet fix : Runner & Share Extension minimum App Deployment Target should be same for example if your setting it up Ios 14 then set it for both (Runner & ShareExtension) keep it same also make the MACH-O-TYPE = Executable for both (Runner and ShareExtension) for it to work in IOS without showing that grey bottomsheet opening and closing issue.
Ensure the Runner’s Build Phases are in the following order: