KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
334 stars 395 forks source link

Member Not Found: ReceiveSharingIntent.getMediaStream #302

Closed Nickthegoatboy closed 5 months ago

Nickthegoatboy commented 5 months ago

Hello, I am working on adding this in (thank you for developing) to my flutter app and building on iOS. I followed the instructions in your setup guide, but now I'm seeing an error when building using either the flutter command or in Xcode:

Error: Member not found: 'ReceiveSharingIntent.getMediaStream'.

I went through and double-checked my steps and I'm not seeing anything obvious that I missed. I'd appreciate any help I can get, thanks!

Note: This dart code works on Android and the sharing works just fine, so it seems to be an iOS specific issue.

Nickthegoatboy commented 5 months ago

Looks like I had code from an outdated version of the library. Changing to ReceiveSharingIntent.instance.getMediaStream and updating my other references seemed to fix it.