IONIC: container shared folder for DocumentProvider extension e.g. Swift

I want to make a Document Provider extension for an application originally developed in IONIC.
I understand that I can use the .xcodeproj file to open the project in Xcode, and then add a new target for the proposed extension .
However, I am confused about the common storage between my AppGroup (App and Extension).
According to NSFileManager (now FileManager), you need to store files in a shared container with a group identifier.
A method to achieve this should: -

 func containerURL(forSecurityApplicationGroupIdentifier groupIdentifier: String) -> URL? 

However, according to the IONIC manual, files can be saved in one of the following places: - enter image description here

According to IONIC Developer, the files are currently in the Document Directory of the application, where we need to have these files in a common container, as described above.

How can we achieve this?

FYI: I could not find any help on the IONIC forums about this, and I am following this tutorial to develop extensions.

+6
source share

All Articles