Add Shared with You to your app

RSS for tag

Discuss the WWDC22 Session Add Shared with You to your app

Posts under wwdc2022-10094 tag

6 Posts

Post

Replies

Boosts

Views

Activity

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
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
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
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
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
HighlightCenter returns no links
Hi I got 2 universal links to my app in my Messages, but when I call highlightCenter.highlights, I get a count of 0. What should I check to get the right links ?
Replies
3
Boosts
0
Views
1.6k
Activity
Jun ’22
SwiftUI Support?
Hey, Loving these new API’s, and would love to integrate in my app. I could only see UIKit support within the video - is there any SwiftUI support out of the box? Cheers!
Replies
2
Boosts
1
Views
1k
Activity
Jun ’22