-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Exception: Domain: 2, Code: 30, Message: Read-only file system #19
Comments
By default the database is created in the same folder where the app is run, which on Android is who knows what. For Android something like this should work: void main() async {
WidgetsFlutterBinding.ensureInitialized();
initializeCblC();
var docPath = await getApplicationDocumentsDirectory();
db = Database('appdb', directory: docPath.path);
runApp(MyApp());
}``` |
I recommend you use the v0.5.x releases for now. |
Thanks @Rudiksz, it works. Any idea what would it take to use this lib on a Flutter Web app ? |
I'm not aware of any mechanism to translate this library to javascript, considering it's native code. Unless somebody writes a js version of couchbase lite (like PouchDB) or at least implements the sync gateway protocol for PouchDB, I see no way for couchbase lite making it to the web. And if at Couchbase itself are not interested, I doubt it will ever happen. And even if there was one, there's still the issue of using it in a Flutter app. |
I tried to run the example app on Android.
After adding the prebuilt v0.4.0 Android shared libraries and it succeeded to run, I got the following exception.
Do I need to add something? Is it AndroidManifest write permission?
The text was updated successfully, but these errors were encountered: