receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

It doesn't work on ios 26.

Open kojang74 opened this issue 3 months ago • 8 comments

It works fine on iOS 18, but not on iOS 26. The examples don't work on iOS 26 either.

Please help.

kojang74 avatar Oct 15 '25 05:10 kojang74

I'm facing the same issue here. Everything works fine on iOS 18, but it stops working on iOS 26 — even the example projects fail. Any updates or workarounds would be greatly appreciated.

iagovianamonteiro avatar Oct 15 '25 19:10 iagovianamonteiro

+1

kristjanbauhub avatar Oct 21 '25 08:10 kristjanbauhub

same here

nbetsaif avatar Oct 21 '25 10:10 nbetsaif

+1

martinogarrizzo5 avatar Oct 22 '25 12:10 martinogarrizzo5

I had the same problem, but the following worked for me.

  1. Validate code signing Entitlements, debug, profile and release in target app groups, must have the entitlements file assigned.
Image
  1. both info.plist must have the appgroupid.
Image
  1. Add the CFBundleTypeRole to share files between the target runner and the share media library.
Image

With these steps it worked for me and I am receiving files on ios26 (sdk17).

Danzed avatar Oct 22 '25 22:10 Danzed

It seems to work fine in iOS 26.1 beta (23B5073a) 🤔


It is reproduced in iOS 26.0, and this error may be related:

Thread 1: "The layout constraints still need update after sending -updateConstraints to <_UINavigationBarTitleControl: 0x107c5cf00; frame = (0 0; 0 0); layer = <CALayer: 0x10dc1c6c0>>.\n_UINavigationBarTitleControl or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them. Both are programming errors.

mono0926 avatar Oct 24 '25 06:10 mono0926

I can confirm it is broken in iOS 26.0.x and is fixed in 26.1 (Beta)

krille-chan avatar Oct 30 '25 07:10 krille-chan

FYI, this seems to be a general problem on ios 26 There is a thread about this in apple's forum if you want to follow it: https://developer.apple.com/forums/thread/805268

There is an option, to get rid of SLComposeServiceViewController base but maybe not worth it as we should expect iOS26.1 soon

tjamet avatar Nov 01 '25 20:11 tjamet

Any update? I face same issue in ios.

hensi-elaunch avatar Dec 15 '25 06:12 hensi-elaunch

I solved above issue from my side. please check my changes.

ShareViewController.txt

change ShareViewController.swift as i attach.

    let shareChannel = FlutterMethodChannel(name: "share_app_group",binaryMessenger: controller.binaryMessenger)

       shareChannel.setMethodCallHandler { call, result in
          if call.method == "getSharedItems" {

            let groupId = "your app group id"
            let containerURL = FileManager.default
              .containerURL(forSecurityApplicationGroupIdentifier: groupId)

            let fileURL = containerURL?.appendingPathComponent("shared_items.json")

            guard
              let url = fileURL,
              let data = try? String(contentsOf: url)
            else {
              result(nil)
              return
            }
            // ✅ SEND DATA TO FLUTTER
            result(data)
            // ✅ VERY IMPORTANT: DELETE AFTER READ
            try? FileManager.default.removeItem(at: url)
          }
        }

add channel method in your AppDelegate.swift file

sharehelper.txt

use receiving_sharing_intent_helper.dart file as i attach above.

using above code my issue fix and it's work in all ios device.

hensi-elaunch avatar Dec 17 '25 11:12 hensi-elaunch