Shared with You

RSS for tag

Bring your app’s collaboration experiences into Messages and FaceTime, and highlight content from your app that people shared in Messages in a Shared with You section within your app.

Posts under Shared with You tag

23 Posts

Post

Replies

Boosts

Views

Activity

90919: Invalid entitlement error in ASC
I have an existing app in App Store Connect. I added the SharedWithYou functionality to the app code and tested it on several devices. Everything is working as expected. One of the first steps was to add the com.apple.developer.shared-with-you entitlement to the Entitlements.plist file. This required a round of updates for app identifiers and provisioning profiles. When I upload the production build for testing in TestFlight I receive the following error: 90919: Invalid entitlement. The “” bundle has the com.apple.developer.shared-with-you entitlement, but it doesn’t use the Shared with You framework. Please remove the entitlement and upload a new build. I'm using SWHighlight, SWHighlightCenter, and SWAttributionView in several places throughout my app... I filed an issue in the Feedback Assistant but so far, have not received any response.
1
0
638
Mar ’26
The participantIdentifier of Shared Coordinate Space invalid in Visionos26 Enterprise api
Visionos26 Enterprise api has the new feature: Shared Coordinate Space, participants exchange their coordinate data by SharedCoordinateSpaceProvider through their own network, when shared coordinate space established with nearby participants, the event: connectedParticipantIdentifiers(participants: [UUID]) will be received. But the Event.participantIdentifier still be an invalid default value(00000000-0000-0000-FFFF-FFFFFFFF) in this time, I wonder when or how I can get a valid event.participantIdentifier, or is there some other way to get the local participantIdentifier? Or If it's a bug, please fix it in later beta release version, thank you.
0
0
413
Jul ’25
TVOS - App Data Stored in Shared App Groups not removing after deletion of apps
Hi, Having a weird issue that I’m noticing on Apple TVs with some apps that are by the same company. I think it’s storing residual user data if if you delete the app and all other apps relating to this. I have even tried deleting every app and reinstalling but we found two apps to be still logged in. Seams like a sandboxing bug and I presume it’s to do with App data stored in the shared app groups. I can only reset the apple tv to remove the user data. The two apps we can see are being persistent is Binge and Kayo by streamotion. We have tried problem solving this in every way imaginable but it’s Interesting that this is allowed to happen on an Apple platform. There is no active user logged into the apple TV with an Apple ID either
0
0
105
Apr ’25
I want to report a Apple bug in call recording feature during facetime audio call
I am using iphone 11 with ios version 18.1 and I found one issue in call recording during FT audio call. Call gets dropped as soon as call recording start. This bug is also reproducible on iphone 14 pro max having same ios version. I tried it 5/5 times and it is 100% reproducible. Can you please help to fix this issue. This is really a serious quality concern as per apple standards.
2
0
517
Nov ’24
Collaboration Preview Image and Title for CKShare When Collaborating With CloudKit
I recently updated our CloudKit collaboration invite codebase to use the new UIActivityController and NSItemProvider invitation as described in Apple's documentation. We previously used UICloudSharingController's init(preparationHandler:), which is since deprecated. We have all of the previous functionality in place: we successfully create a CKShare, send the invite out, engage the share, and collaborate. However, we cannot get the Messages CKShare preview to use our custom image and title (henceforth referred to as “collaboration metadata”). Previously, while using UICloudSharingController's init(preparationHandler:) to commence the share invite, the collaboration metadata successfully displayed in the Messages conversation. Now, we have a generic icon of our app and “Shared with App-Name" title, leading to a loss of contextual integrity for the invite flow. My question: How do we make the collaboration metadata appear in the Messages conversation? Here is our code for creating the UIActivityController, NSItemProvider, CKShare, and other related entities. It encapsulates the entire CloudKit CKShare invite setup. You will note that we do configure the CKShare with metadata, and we do set the LPLinkMetadata on the UIActivityItemsConfiguration. GitHub Gist. The metadata does successfully appear in the UIActivityController and the CKShare's image and title are available to the person receiving the share once they engage it and open it in our app – but the Messages preview item retains the generic message content. Also please note that this issue does occur in the production environment. As a final note, examining UICloudSharingController's definition leads me to believe that supplying a UIActivityItemSource is the key to getting correct Messages collaboration metadata in place. My efforts at using an item adhering to UIActivityItemSource in the UIActivityViewController used to send the share did not yield the rich previews and displayed metadata I am aiming for.
2
0
880
Jul ’24
SharePlay Button
I learned Sharplay from the WWDC video. I understand the creation of seats, but I can't learn some of the following contents well, so I hope you can help me. The content is as follows: I have set up the seats. struct TeamSelectionTemplate: SpatialTemplate { let elements: [any SpatialTemplateElement] = [ .seat(position: .app.offsetBy(x: 0, z: 4)), .seat(position: .app.offsetBy(x: 1, z: 4)), .seat(position: .app.offsetBy(x: -1, z: 4)), .seat(position: .app.offsetBy(x: 2, z: 4)), .seat(position: .app.offsetBy(x: -2, z: 4)), ] } It was mentioned in one of my previous posts: "I hope you can give me a SharePlay Button. After pressing it, it will assign all users in Facetime to a seat with elements quantified in TeamSe lectionTemplate.", and someone replied to me and asked me to try systemCoordinator.configuration.spatialTemplatePreference = .custom (TeamSelectionTemplate()), however, Xcode error Cannot find 'systemCoordinator' in scope How to solve it? Thank you!
1
0
1.1k
Jun ’24
sharing ips file failed
Sharing IPS files produced by my app to my app failed.Only in ios17. LaunchServices: open operation <NSBlockOperation: 0x606d2abc0> failed with error: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=742, _LSFunction=_LSIsRequestValid}
0
0
650
Apr ’24
React Native - iOS - open iMessages Share Extension
I am creating an app where i am opening the direct share extension in app for different apps like instagram, snapchat and whatsapp. It is working fine i know there share extension bundle id and it open perfectly. I also need to open the iMessages share extension in app i have found the bundle id of iMessage share extension it is com.apple.UIKit.activity.Message but when i try to open it got error extension not found. Any one have any idea how i can find the right bundle if for iMessage share extension ? I am using an iOS SPM package LNExtensionExecutor and create a bridge between React Native and this native package.
0
0
1k
Jan ’24
GroupActivity: Dropping activity as there is no active conversation:
Hi, I am having trouble with Share Play working. When I create and run the GroupActivity sample in SharePlay, I get the following message and GroupActivity does not work. https://mitemmetim.medium.com/shareplay-tutorial-share-custom-data-between-ios-and-macos-a50bfecf6e64 Dropping activity as there is no active conversation: <TUMutableConversationActivityCreateSessionRequest 0x2836731c0 activityIdentifier=jp.co.1planet.sample.SharePlayTutorial.SharePlayActivity applicationContext={length = 42, bytes = 0x62706c69 73743030 d0080000 00000000 ... 00000000 00000009 } metadata=<TUConversationActivityMetadata 0x28072d380 context=CPGroupActivityGenericContext title=SharePlay Example sceneAssociationBehavior=<TUConversationActivitySceneAssociationBehavior 0x28237a740 targetContentIdentifier=(null) shouldAssociateScene=1 preferredSceneSessionRole=(null)>> UUID=3137DDE4-F5B2-46B2-9097-30DD6CAE79A3> I tried running it on Mac and iOS, but it did not work as expected. By the way, we are also trying the following https://developer.apple.com/forums/thread/683624 I have no knowledge of GroupActivity; I have Group Activities set in Capability. Do I need to set anything else? Please let me know if you can find any solution to this message. By the way, I am using Xcode 15.2 Beta, iOS 17.1.1 and iOS 17.3 Beta, Mac OS 14.2.1 (23C71). Best Regards.
0
0
919
Jan ’24
Facetime Chroma Green - Accessibility Lens
xI'm wondering if now would be an excellent time for Apple to consider implementing Accessibility Lens with FaceTime Chroma Green. Unlike Apple, other platforms like Zoom and Webex allow using Chroma Green backgrounds. I use Cam Studio, Elgato Camera Hub, and OBS for Chroma Green effects. I'd like to have the option to use FaceTime with a Chroma Green and choose my background setting. For accessibility and professionalism, we need the ability to change the background settings. We want to be creative with our FaceTime and FaceTime Group. We've invested much in our devices, including iPhones, iPads, and MacBook Pros. The issue stems from Apple's built-in applications using hardened runtimes. These runtimes prevent apps from loading third-party plugins unless explicitly allowed by the developers. This means third-party camera drivers are incompatible with Apple apps. We're trying to find a solution, but currently, there's nothing we can do. This is a barrier for all of us who are Deaf, Deaf-Blind, and Hard of Hearing and rely on FaceTime and FaceTime Group with Chroma Green background settings. Please let me know. Thank you!
1
0
776
Sep ’23
SWHighlightCenterDelegate never gets called
I did see a checklist in another post (see below) that I did verify as being configured correctly, but my delegate never gets called. I have confirmed that my universal link is working correctly as tapping on it in Messages does cause the app to open and handle it by going to the appropriate screen. A couple of details: My universal link is new and am testing it using Developer -> Associated Domains Development I am rewriting my app using SwiftUI including @main being a struct derived from App What else am I missing? is Shared with You enabled for your app? Preferences > Messages > Shared with You and see if the toggle for your APP is enabled? is Shared with You enabled for the conversation where these universal links are shared In the conversation where the universal links are shared, is the participant a Contact? If you have sent the link, then you will need to "Pin" the link for it to surface in Shared with You.
6
0
2.3k
Dec ’22
Embedded SWCollaborationView in SwiftUI
Hello to the team, Our app (targeting iOS 16) is sharing data between users via CloudKit, and now we'd like to add the new SWCollaborationView feature. I created a CollaborationViewRep: UIViewRepresentable view as follows -     var activityItem: NSItemProvider     var eventName: String     @Binding var isCollaborationViewPresented: Bool     func makeUIView(context: Context) -> SWCollaborationView {         let collaborationView = SWCollaborationView(itemProvider: activityItem)         collaborationView.delegate = context.coordinator         return collaborationView     }     func updateUIView(_ uiView: SWCollaborationView, context: Context) {     }     class Coordinator: NSObject, SWCollaborationViewDelegate {         var parent: CollaborationViewRep         init(_ parent: CollaborationViewRep) {             self.parent = parent         }                  func collaborationViewShouldPresentPopover(_ collaborationView: SWCollaborationView) -> Bool {             return true         }         func collaborationViewWillPresentPopover(_ collaborationView: SWCollaborationView) {         }     }     func makeCoordinator() -> Coordinator {         Coordinator(self)     } } And when I'm trying to add this view as a toolbar item to my SwiftUI view, it doesn't work properly. If I'm adding this view as the toolbar item, without wrap it into a button, then nothing happens when I'm tapping the view (as it should work on UIKit). If I do wrap it with a button, and present the view as popover, then the view icon is presented and then, only when I tap this popover, the content view is presented (screenshot attached). It feels like this feature is not fully available for SwiftUI, unless I'm missing something. Unfortunately, the documentation is not covering the SwiftUI flow and there is no sample app for reference. Any idea how to best practice this situation? Thanks a lot!
0
2
1.4k
Oct ’22
Shared With You entitlements block AppStoreConnect upload
If Shared With You entitlements are turned on in Xcode capabilities and then try to upload the build to the App Store, the app upload is rejected with no reasons. Removing the entitlements allows it to be uploaded. No parts of the Shared With You entitlements were accessed in the app, only the entitlements were enabled. This has been confirmed in a simple 'Hello World' app with the same kind of App Store response, which looks like this...
1
0
735
Oct ’22
Catalyst Developer ID support for Shared with You
I'm working on Shared with You support for my iOS / macOS app, and it's working very well on iOS. I am trying to publish a macOS beta that's signed with my Developer ID, but I'm getting the following error: The Shared with You capability is not available for Mac Catalyst Developer ID provisioning profiles. Disable this feature and try again. However, the documentation says that the feature is available on Mac Catalyst. Is this just not available when trying to export for signing with my Developer ID? Is this an inherent limitation and this is only available for builds that are distributed through the App Store or TestFlight?
1
0
1.5k
Sep ’22
SWCollaborationMetadata does not appear in Messages
Our app has a custom collaboration setup, but we would like to support Shared with You. We have setup the app following the sessions. To summarize... Added the Shared with You entitlement When preparing to share, generate a SWCollaborationMetadata, and pass it to the share picker Added the SWCollaborationCoordinator and functions to handle the callback from messages when the user has gone to send the invitation Setup Associated Domains and universal links. These seem to work. Pasting a universal link in messages directly does present nice UI. So far so good. The picker appears, and we can click on Messages in the popover, and Messages opens. But it is completely empty. It does show the person we clicked (if it was an individual), but there is no message preparation UI or anything for the user to do. It is just an empty text field the user can type a message in. Nothing about setting up our collaboration. We do get a small amount of information in the console: 2022-07-09 09:46:08.756155+0200 Agenda[48995:965560] [Framework] No filtered items to share 2022-07-09 09:46:11.294593+0200 Agenda[48995:965560] [NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's NSExtensionContext subclass must implement `+_allowedItemPayloadClasses`. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. 2022-07-09 09:46:11.346694+0200 Agenda[48995:984764] [ShareSheet] Connection invalidated Should this already be working in Beta 3? If so, what are we missing? Is it necessary to setup a GroupActivity or something like that? There was no mention of anything like that in the WWDC videos, but maybe it is supposed to be obvious. (Sample code would be a huge help with something like this.)
4
0
1.7k
Aug ’22
How is SWCollaborationView supposed to be used in new documents (iCloud Drive)?
The Mac app I’m working on stores documents in iCloud Drive. Showing an SWCollaborationView in the toolbar works when creating an NSItemProvider using the document’s fileURL like this: if let documentURL = document.fileURL { toolbarItem.view = SWCollaborationView(itemProvider: NSItemProvider(object: documentURL)) } This only works if a document was previously saved to disk and is then opened, though, because a new, unsaved document doesn’t have a fileURL yet. So this means I can’t show an SWCollaborationView for unsaved documents. What I don’t quite understand is what we are supposed to do in this situation. The current version of Pages (which doesn’t use SWCollaborationView yet, of course) seems to show a button for collaboration for new documents and when you click that, the document is saved to iCloud without user interaction before the popover opens. How would I go about doing this in my app? And here’s also a bonus question: Do I have to handle renaming/moving of the document manually? That is, does SWCollaborationView automatically handle the case where the document is renamed in Finder/Files? I’m curious because the SWCollaborationView references an NSItemProvider which in turn references an NSURL and it’s not clear to me if that should work. And if I have to do it manually: Does this mean I’ll have to create a new SWCollaborationView and set it on my toolbar item?
0
0
1k
Jul ’22
90919: Invalid entitlement error in ASC
I have an existing app in App Store Connect. I added the SharedWithYou functionality to the app code and tested it on several devices. Everything is working as expected. One of the first steps was to add the com.apple.developer.shared-with-you entitlement to the Entitlements.plist file. This required a round of updates for app identifiers and provisioning profiles. When I upload the production build for testing in TestFlight I receive the following error: 90919: Invalid entitlement. The “” bundle has the com.apple.developer.shared-with-you entitlement, but it doesn’t use the Shared with You framework. Please remove the entitlement and upload a new build. I'm using SWHighlight, SWHighlightCenter, and SWAttributionView in several places throughout my app... I filed an issue in the Feedback Assistant but so far, have not received any response.
Replies
1
Boosts
0
Views
638
Activity
Mar ’26
The participantIdentifier of Shared Coordinate Space invalid in Visionos26 Enterprise api
Visionos26 Enterprise api has the new feature: Shared Coordinate Space, participants exchange their coordinate data by SharedCoordinateSpaceProvider through their own network, when shared coordinate space established with nearby participants, the event: connectedParticipantIdentifiers(participants: [UUID]) will be received. But the Event.participantIdentifier still be an invalid default value(00000000-0000-0000-FFFF-FFFFFFFF) in this time, I wonder when or how I can get a valid event.participantIdentifier, or is there some other way to get the local participantIdentifier? Or If it's a bug, please fix it in later beta release version, thank you.
Replies
0
Boosts
0
Views
413
Activity
Jul ’25
TVOS - App Data Stored in Shared App Groups not removing after deletion of apps
Hi, Having a weird issue that I’m noticing on Apple TVs with some apps that are by the same company. I think it’s storing residual user data if if you delete the app and all other apps relating to this. I have even tried deleting every app and reinstalling but we found two apps to be still logged in. Seams like a sandboxing bug and I presume it’s to do with App data stored in the shared app groups. I can only reset the apple tv to remove the user data. The two apps we can see are being persistent is Binge and Kayo by streamotion. We have tried problem solving this in every way imaginable but it’s Interesting that this is allowed to happen on an Apple platform. There is no active user logged into the apple TV with an Apple ID either
Replies
0
Boosts
0
Views
105
Activity
Apr ’25
I want to report a Apple bug in call recording feature during facetime audio call
I am using iphone 11 with ios version 18.1 and I found one issue in call recording during FT audio call. Call gets dropped as soon as call recording start. This bug is also reproducible on iphone 14 pro max having same ios version. I tried it 5/5 times and it is 100% reproducible. Can you please help to fix this issue. This is really a serious quality concern as per apple standards.
Replies
2
Boosts
0
Views
517
Activity
Nov ’24
Collaboration Preview Image and Title for CKShare When Collaborating With CloudKit
I recently updated our CloudKit collaboration invite codebase to use the new UIActivityController and NSItemProvider invitation as described in Apple's documentation. We previously used UICloudSharingController's init(preparationHandler:), which is since deprecated. We have all of the previous functionality in place: we successfully create a CKShare, send the invite out, engage the share, and collaborate. However, we cannot get the Messages CKShare preview to use our custom image and title (henceforth referred to as “collaboration metadata”). Previously, while using UICloudSharingController's init(preparationHandler:) to commence the share invite, the collaboration metadata successfully displayed in the Messages conversation. Now, we have a generic icon of our app and “Shared with App-Name" title, leading to a loss of contextual integrity for the invite flow. My question: How do we make the collaboration metadata appear in the Messages conversation? Here is our code for creating the UIActivityController, NSItemProvider, CKShare, and other related entities. It encapsulates the entire CloudKit CKShare invite setup. You will note that we do configure the CKShare with metadata, and we do set the LPLinkMetadata on the UIActivityItemsConfiguration. GitHub Gist. The metadata does successfully appear in the UIActivityController and the CKShare's image and title are available to the person receiving the share once they engage it and open it in our app – but the Messages preview item retains the generic message content. Also please note that this issue does occur in the production environment. As a final note, examining UICloudSharingController's definition leads me to believe that supplying a UIActivityItemSource is the key to getting correct Messages collaboration metadata in place. My efforts at using an item adhering to UIActivityItemSource in the UIActivityViewController used to send the share did not yield the rich previews and displayed metadata I am aiming for.
Replies
2
Boosts
0
Views
880
Activity
Jul ’24
SharePlay Button
I learned Sharplay from the WWDC video. I understand the creation of seats, but I can't learn some of the following contents well, so I hope you can help me. The content is as follows: I have set up the seats. struct TeamSelectionTemplate: SpatialTemplate { let elements: [any SpatialTemplateElement] = [ .seat(position: .app.offsetBy(x: 0, z: 4)), .seat(position: .app.offsetBy(x: 1, z: 4)), .seat(position: .app.offsetBy(x: -1, z: 4)), .seat(position: .app.offsetBy(x: 2, z: 4)), .seat(position: .app.offsetBy(x: -2, z: 4)), ] } It was mentioned in one of my previous posts: "I hope you can give me a SharePlay Button. After pressing it, it will assign all users in Facetime to a seat with elements quantified in TeamSe lectionTemplate.", and someone replied to me and asked me to try systemCoordinator.configuration.spatialTemplatePreference = .custom (TeamSelectionTemplate()), however, Xcode error Cannot find 'systemCoordinator' in scope How to solve it? Thank you!
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’24
sharing ips file failed
Sharing IPS files produced by my app to my app failed.Only in ios17. LaunchServices: open operation <NSBlockOperation: 0x606d2abc0> failed with error: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=742, _LSFunction=_LSIsRequestValid}
Replies
0
Boosts
0
Views
650
Activity
Apr ’24
send collaboration error in Message
in my app, i use sharelink with SWCollaborationMetadata to share collaboration in Message.when i click send button, the Message shows "An Error Occurred, Unable to start collaboration". is there sombody to tell me how to fix it?
Replies
0
Boosts
0
Views
775
Activity
Mar ’24
React Native - iOS - open iMessages Share Extension
I am creating an app where i am opening the direct share extension in app for different apps like instagram, snapchat and whatsapp. It is working fine i know there share extension bundle id and it open perfectly. I also need to open the iMessages share extension in app i have found the bundle id of iMessage share extension it is com.apple.UIKit.activity.Message but when i try to open it got error extension not found. Any one have any idea how i can find the right bundle if for iMessage share extension ? I am using an iOS SPM package LNExtensionExecutor and create a bridge between React Native and this native package.
Replies
0
Boosts
0
Views
1k
Activity
Jan ’24
GroupActivity: Dropping activity as there is no active conversation:
Hi, I am having trouble with Share Play working. When I create and run the GroupActivity sample in SharePlay, I get the following message and GroupActivity does not work. https://mitemmetim.medium.com/shareplay-tutorial-share-custom-data-between-ios-and-macos-a50bfecf6e64 Dropping activity as there is no active conversation: <TUMutableConversationActivityCreateSessionRequest 0x2836731c0 activityIdentifier=jp.co.1planet.sample.SharePlayTutorial.SharePlayActivity applicationContext={length = 42, bytes = 0x62706c69 73743030 d0080000 00000000 ... 00000000 00000009 } metadata=<TUConversationActivityMetadata 0x28072d380 context=CPGroupActivityGenericContext title=SharePlay Example sceneAssociationBehavior=<TUConversationActivitySceneAssociationBehavior 0x28237a740 targetContentIdentifier=(null) shouldAssociateScene=1 preferredSceneSessionRole=(null)>> UUID=3137DDE4-F5B2-46B2-9097-30DD6CAE79A3> I tried running it on Mac and iOS, but it did not work as expected. By the way, we are also trying the following https://developer.apple.com/forums/thread/683624 I have no knowledge of GroupActivity; I have Group Activities set in Capability. Do I need to set anything else? Please let me know if you can find any solution to this message. By the way, I am using Xcode 15.2 Beta, iOS 17.1.1 and iOS 17.3 Beta, Mac OS 14.2.1 (23C71). Best Regards.
Replies
0
Boosts
0
Views
919
Activity
Jan ’24
Facetime Chroma Green - Accessibility Lens
xI'm wondering if now would be an excellent time for Apple to consider implementing Accessibility Lens with FaceTime Chroma Green. Unlike Apple, other platforms like Zoom and Webex allow using Chroma Green backgrounds. I use Cam Studio, Elgato Camera Hub, and OBS for Chroma Green effects. I'd like to have the option to use FaceTime with a Chroma Green and choose my background setting. For accessibility and professionalism, we need the ability to change the background settings. We want to be creative with our FaceTime and FaceTime Group. We've invested much in our devices, including iPhones, iPads, and MacBook Pros. The issue stems from Apple's built-in applications using hardened runtimes. These runtimes prevent apps from loading third-party plugins unless explicitly allowed by the developers. This means third-party camera drivers are incompatible with Apple apps. We're trying to find a solution, but currently, there's nothing we can do. This is a barrier for all of us who are Deaf, Deaf-Blind, and Hard of Hearing and rely on FaceTime and FaceTime Group with Chroma Green background settings. Please let me know. Thank you!
Replies
1
Boosts
0
Views
776
Activity
Sep ’23
CarPlay Certification Guide Whereabouts?
Anyone know where the CarPlay Certification Guide is located. I can't find it on MFi.
Replies
0
Boosts
0
Views
769
Activity
Aug ’23
SWHighlightCenterDelegate never gets called
I did see a checklist in another post (see below) that I did verify as being configured correctly, but my delegate never gets called. I have confirmed that my universal link is working correctly as tapping on it in Messages does cause the app to open and handle it by going to the appropriate screen. A couple of details: My universal link is new and am testing it using Developer -> Associated Domains Development I am rewriting my app using SwiftUI including @main being a struct derived from App What else am I missing? is Shared with You enabled for your app? Preferences > Messages > Shared with You and see if the toggle for your APP is enabled? is Shared with You enabled for the conversation where these universal links are shared In the conversation where the universal links are shared, is the participant a Contact? If you have sent the link, then you will need to "Pin" the link for it to surface in Shared with You.
Replies
6
Boosts
0
Views
2.3k
Activity
Dec ’22
Embedded SWCollaborationView in SwiftUI
Hello to the team, Our app (targeting iOS 16) is sharing data between users via CloudKit, and now we'd like to add the new SWCollaborationView feature. I created a CollaborationViewRep: UIViewRepresentable view as follows -     var activityItem: NSItemProvider     var eventName: String     @Binding var isCollaborationViewPresented: Bool     func makeUIView(context: Context) -> SWCollaborationView {         let collaborationView = SWCollaborationView(itemProvider: activityItem)         collaborationView.delegate = context.coordinator         return collaborationView     }     func updateUIView(_ uiView: SWCollaborationView, context: Context) {     }     class Coordinator: NSObject, SWCollaborationViewDelegate {         var parent: CollaborationViewRep         init(_ parent: CollaborationViewRep) {             self.parent = parent         }                  func collaborationViewShouldPresentPopover(_ collaborationView: SWCollaborationView) -> Bool {             return true         }         func collaborationViewWillPresentPopover(_ collaborationView: SWCollaborationView) {         }     }     func makeCoordinator() -> Coordinator {         Coordinator(self)     } } And when I'm trying to add this view as a toolbar item to my SwiftUI view, it doesn't work properly. If I'm adding this view as the toolbar item, without wrap it into a button, then nothing happens when I'm tapping the view (as it should work on UIKit). If I do wrap it with a button, and present the view as popover, then the view icon is presented and then, only when I tap this popover, the content view is presented (screenshot attached). It feels like this feature is not fully available for SwiftUI, unless I'm missing something. Unfortunately, the documentation is not covering the SwiftUI flow and there is no sample app for reference. Any idea how to best practice this situation? Thanks a lot!
Replies
0
Boosts
2
Views
1.4k
Activity
Oct ’22
Shared With You entitlements block AppStoreConnect upload
If Shared With You entitlements are turned on in Xcode capabilities and then try to upload the build to the App Store, the app upload is rejected with no reasons. Removing the entitlements allows it to be uploaded. No parts of the Shared With You entitlements were accessed in the app, only the entitlements were enabled. This has been confirmed in a simple 'Hello World' app with the same kind of App Store response, which looks like this...
Replies
1
Boosts
0
Views
735
Activity
Oct ’22
Is my app enabled by default in Settings->Messages->Shared with You?
Does anyone know if your app is enabled by default in Settings->Messages->Shared with You? It seems like it's disabled for me. Does that mean we'll need to educate our users to go into Settings and turn it on? Thanks!
Replies
1
Boosts
1
Views
1k
Activity
Sep ’22
Catalyst Developer ID support for Shared with You
I'm working on Shared with You support for my iOS / macOS app, and it's working very well on iOS. I am trying to publish a macOS beta that's signed with my Developer ID, but I'm getting the following error: The Shared with You capability is not available for Mac Catalyst Developer ID provisioning profiles. Disable this feature and try again. However, the documentation says that the feature is available on Mac Catalyst. Is this just not available when trying to export for signing with my Developer ID? Is this an inherent limitation and this is only available for builds that are distributed through the App Store or TestFlight?
Replies
1
Boosts
0
Views
1.5k
Activity
Sep ’22
How do I get my iOS app to run code when something specific in a message in Messages happens?
How do I get my iOS app to run code when something specific in a message in Messages happens, like a specific phone number sends a specific phrase?
Replies
2
Boosts
0
Views
1.1k
Activity
Sep ’22
SWCollaborationMetadata does not appear in Messages
Our app has a custom collaboration setup, but we would like to support Shared with You. We have setup the app following the sessions. To summarize... Added the Shared with You entitlement When preparing to share, generate a SWCollaborationMetadata, and pass it to the share picker Added the SWCollaborationCoordinator and functions to handle the callback from messages when the user has gone to send the invitation Setup Associated Domains and universal links. These seem to work. Pasting a universal link in messages directly does present nice UI. So far so good. The picker appears, and we can click on Messages in the popover, and Messages opens. But it is completely empty. It does show the person we clicked (if it was an individual), but there is no message preparation UI or anything for the user to do. It is just an empty text field the user can type a message in. Nothing about setting up our collaboration. We do get a small amount of information in the console: 2022-07-09 09:46:08.756155+0200 Agenda[48995:965560] [Framework] No filtered items to share 2022-07-09 09:46:11.294593+0200 Agenda[48995:965560] [NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's NSExtensionContext subclass must implement `+_allowedItemPayloadClasses`. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. 2022-07-09 09:46:11.346694+0200 Agenda[48995:984764] [ShareSheet] Connection invalidated Should this already be working in Beta 3? If so, what are we missing? Is it necessary to setup a GroupActivity or something like that? There was no mention of anything like that in the WWDC videos, but maybe it is supposed to be obvious. (Sample code would be a huge help with something like this.)
Replies
4
Boosts
0
Views
1.7k
Activity
Aug ’22
How is SWCollaborationView supposed to be used in new documents (iCloud Drive)?
The Mac app I’m working on stores documents in iCloud Drive. Showing an SWCollaborationView in the toolbar works when creating an NSItemProvider using the document’s fileURL like this: if let documentURL = document.fileURL { toolbarItem.view = SWCollaborationView(itemProvider: NSItemProvider(object: documentURL)) } This only works if a document was previously saved to disk and is then opened, though, because a new, unsaved document doesn’t have a fileURL yet. So this means I can’t show an SWCollaborationView for unsaved documents. What I don’t quite understand is what we are supposed to do in this situation. The current version of Pages (which doesn’t use SWCollaborationView yet, of course) seems to show a button for collaboration for new documents and when you click that, the document is saved to iCloud without user interaction before the popover opens. How would I go about doing this in my app? And here’s also a bonus question: Do I have to handle renaming/moving of the document manually? That is, does SWCollaborationView automatically handle the case where the document is renamed in Finder/Files? I’m curious because the SWCollaborationView references an NSItemProvider which in turn references an NSURL and it’s not clear to me if that should work. And if I have to do it manually: Does this mean I’ll have to create a new SWCollaborationView and set it on my toolbar item?
Replies
0
Boosts
0
Views
1k
Activity
Jul ’22