Sharing Data Between IOS Application and Unity Application in IOS platform (698786)

I am developing two applications
First app: in objective_c: exports a 3d model as a text
Second app: Written in Unity (C#) : 3d model viewer, it takes a string or a file path to render that 3d model
I wonder if there is a way to share data (string or file path) between these two apps
Thanks in advance.

a simple way is adding an url scheme like myapp://somefilepath to your second app. the first app opens this url and your second app will be asked to handle that request. You’ll also need an app group, so they can both access the file. You get a container url for the group identifier from the file manager, you can save/load your files from that container

the second app is written in unity
we can add to the generated ios code the app_froup
but how to handle the request in unity ?
i mean how to read the request from the first app and access its data
Thanks

you have to create a custom AppController, derived from UnityAppController, using the IMPL_APP_CONTROLLER_SUBCLASS Macro and implementing the openURL method. Just place the .mm and .h file somewhere in the Asset folder.
So all the code has to be in Objective-c. After you get the data you pass it to a MonoBehaviour via the UnitySendMessage method (you might have to dispatch it to the main thread, not sure).