IonicDB connect / disconnect / socket errors


With a very simple test rig I am unable to insert into my IonicDB if I call disconnect() and then connect();
If I don’t issue disconnect() I am fine.

I have a watch on this.db.status().subscribe … and I only ever see status ‘disconnected’

This is related to

I.e. regardless of the above if an app deployed in Ionic View and the user locks the iphone when the app tries to run a query on the IonicDB it gets a socket error and it does not try and reconnect.

It’s as if the reconnecting simply does not work?

Any advise ?


Fixed with latest dependencies rather than default when you start project

“dependencies”: {
"@angular/common": “2.4.8”,
"@angular/compiler": “2.4.8”,
"@angular/compiler-cli": “2.4.8”,
"@angular/core": “2.4.8”,
"@angular/forms": “2.4.8”,
"@angular/http": “2.4.8”,
"@angular/platform-browser": “2.4.8”,
"@angular/platform-browser-dynamic": “2.4.8”,
"@angular/platform-server": “2.4.8”,
"@ionic/cloud-angular": “0.11.0”,
"@ionic/storage": “1.1.9”,
“ionic-angular”: “2.2.0”,
“ionic-native”: “2.4.1”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.1”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “0.7.2”
“devDependencies”: {