ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
41 stars 39 forks source link

IOS - screen flicker #66

Open gekosurf opened 1 year ago

gekosurf commented 1 year ago

Hi Folks,

When i run the example on an iPhone it work nicely for copying in text.

When i complete the task i close the iphone app. If i try repeating the process the flutter app i cannot kill and it does not open. There is a flicker of the flutter application page

Not sure even how to debug this problem.

Ideally id like the flutter share_handler extension to run in the background and when copied to it opens my app with the data.

Is this issue, related to:

In Xcode, replace the contents of ShareExtension/ShareViewController.swift with the following code. The share extension doesn't launch a UI of its own, instead it serializes the shared content/media and saves it to the groups shared preferences, then opens a deep link into the full app so your flutter/dart code can then read the serialized data and handle it accordingly. Note that for a brief moment, a default share modal might show up before it redirects to the app (particularly noticeable when using a simulator).

Thanks...