I have 2 Apps.
- A sandboxed native Mac App written in AppKit/SwiftUI.
- A Catalyst App.
I would like them to be able to communicate with each other. I assumed I would be able to do this using a shared App Group but I can't get it to work and I think this is because the App Group naming conventions appear to be different.
As far as I can make out:
- A Mac App uses App groups prefixed with the team ID
- A Catalyst App uses the iOS App groups which are prefixed with
group.
I have tried multiple combinations of different prefixes to try and make this work but without success.
I have been "testing" this by using UserDefaults(suiteName: appGroup)
and then attempting to read write values between the 2 Apps but without success so far.
My questions are:
- Is sharing an App Group between Catalyst and native technically possible?
- If it is possible what is the magic combo of App Group prefixes that makes it work?
- If it is not possible then do I have any other options for communicating between a sandboxed Mac App and a Catalyst App?