Some changes

This commit is contained in:
Eudes Inácio
2021-11-03 12:21:19 +01:00
parent f61723599e
commit d7745a1ed3
9 changed files with 392 additions and 218 deletions
+7 -2
View File
@@ -25,11 +25,14 @@ export class SqliteService {
this.databaseConn();
}
databaseConn() {
databaseConn() {
console.log('SQLDBConnect')
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
} else {
console.log('SQLDBConnect22')
this.platform.ready().then(async () => {
await this.sqlite.create({
console.log('SQLDBConnect33')
this.sqlite.create({
name: this.db_name,
location: 'default'
}).then(async (sqLite: SQLiteObject) => {
@@ -126,6 +129,8 @@ export class SqliteService {
.catch((error) => console.log(JSON.stringify(error)));
})
.catch((error) => console.log(JSON.stringify(error)));
}).catch((error) => {
console.log('Platform ready error', error)
});
}
}