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

Remove post dialog when share media file. #207

Open baymax-ml opened 2 years ago

baymax-ml commented 2 years ago

Receive_sharing_intet is working on IOS But, When share media file(image file) to the app, at first I am seeing "Post" Dialog before go to the app. Please check the below screenshot.

I want to remove this dialog and I want to go to the app directly. I want to you help me.

Thanks

Screenshot at Feb 16 10-45-27 .

Aminadav commented 2 years ago

+1

baymax-ml commented 2 years ago

Hello @Aminadav do you have the same issue?

Aminadav commented 2 years ago

Yes. I see it for one second

baymax-ml commented 2 years ago

1 second? really? I can't move next step (to app) till press "post" button.

irocn commented 2 years ago

The article is good reference, https://diamantidis.github.io/2020/01/11/share-extension-custom-ui @FlutterDev6778

bhagat-techind commented 1 year ago

You can use my plugin flutter_sharing_intent Here we open our app without showing post dialog.

Ayush-Jung commented 1 year ago

If you guys don't want Ios dialog than you can just do by:

mono0926 commented 5 months ago

To resolve the issue, modify https://github.com/KasemJaffer/receive_sharing_intent/blob/master/example/ios/Share%20Extension/ShareViewController.swift as follows.

import receive_sharing_intent

class ShareViewController: RSIShareViewController {
    open override func viewDidLoad() {
        super.viewDidLoad()
        self.view.isHidden = true
    }
}