You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use flutter WorkManager to trigger background task.
However, Flogs not work anymore.
Future_openDatabase() async {
// Get a platform-specific directory where persistent app data can be storedfinal appDocumentDir =awaitgetApplicationDocumentsDirectory();
// Path with the form: /platform-specific-directory/demo.dbfinal dbPath =join(appDocumentDir.path, DBConstants.DB_NAME);
// Check to see if encryption is set, then provide codec// else init normal db with pathvar database;
if (FLog.getDefaultConfigurations().encryptionEnabled &&FLog.getDefaultConfigurations().encryptionKey.isNotEmpty) {
// Initialize the encryption codec with a user passwordvar codec =getXXTeaSembastCodec(
password:FLog.getDefaultConfigurations().encryptionKey);
database =await databaseFactoryIo.openDatabase(dbPath, codec: codec);
} else {
database =await databaseFactoryIo.openDatabase(dbPath); // <====== not return in the background
}
// Any code awaiting the Completer's future will now start executing
_dbOpenCompleter!.complete(database);
}
The text was updated successfully, but these errors were encountered:
I use flutter WorkManager to trigger background task.
However, Flogs not work anymore.
The text was updated successfully, but these errors were encountered: