I am developing two iOS app and I want to access their database from each other.
Eg. APP1 and APP2 both developed by me, APP1 can access APP2 database and vice-versa
I read somewhere that same iOS app developer can have sandbox access authorities to access their own developed iOS app.
Yes, you can do this. You create an app group, put both apps in the same app group. Any files created in the shared file area are available to both apps. It works exactly the same way an extension shares files with its host app.
I'm currently using this to share a SQL DB between two different apps.
The shared file are can be accessed via the file manager:
NSFileManager* fileMgr = [NSFileManager defaultManager];
NSURL* sharedDirectory = [fileMgr containerURLForSecurityApplicationGroupIdentifier:appGroupId];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With