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
325 stars 375 forks source link

Action URL no longer received by the Flutter Application when upgrading from 1.4.2 #178

Open mac-spinks opened 3 years ago

mac-spinks commented 3 years ago

I have two iOS apps. One of them is in Flutter. My non flutter app communicates with my Flutter app by saving a file, then opening my flutter app by way of url with the path to the file as an argument. I do this by setting up a url scheme in my info.plist of my flutter app. This all works as expected. I have my Flutter code and ShareExtension set up exactly as specified in the readme. My non Flutter app saves the file as expected, opens the configured url, my Flutter app opens and opens the specified file. However, I am know trying to migrate to null-safety and need to update this package. The problem is that when I upgrade, even to 1.4.3, this no longer works. I can see that the code in my Runner/AppDelegate.swift is run when the url is called from the non Flutter app, but after that finishes the handoff to the ReceiveSharingIntent code in the Flutter app never occurs. There are no errors logged and the app continues to run. I have edited my pubspec.yaml and run "flutter clean" multiple times. I can confirm that changing it back to 1.4.2 fixes the issue.

woutervanwijk commented 3 years ago

Duplicate of https://github.com/KasemJaffer/receive_sharing_intent/issues/116