0

I have searched but in vain for an answer to the question: Using sqflite and Flutter is it possible to create a central database which can be accessed by several different Flutter apps? Any suggestion appreciated!

sigjak
  • 129
  • 1
  • 1
  • 9

2 Answers2

0

In the case of Android, it is possible with a configuration in the manifest. Share SQLite database between 2 android apps?

But in iOS, every app runs in a sandbox. Then, the same code won't run in both platforms.

Frank Moreno
  • 304
  • 1
  • 7
0

In iOS, Using app group, and you can access shared space with

-[NSFileManagre containerURLForSecurityApplicationGroupIdentifier:] (ref)

you can put your sqflite in that path.

enter image description here

JerryZhou
  • 4,566
  • 3
  • 37
  • 60