Ionic database has to be woken up
Opened this issue · 1 comments
MvRemmerden commented
If there was no connection to the database for a considerable amount of time (from my experience about 6 hours), the database is going into sleeping mode, which can be seen in the apps.ionic.io interface.
So when the app tries to connect, the first connect() call only wakes up the database, but does not establish the actual connection, so the app has to be restarted to get access to the data.
digicoparis commented
I confirm using watch event, Ionic Cloud DB goes into sleep mode after some time with no request. (more than 2 hours with no activity). The only way to recall db is by using ionic cloud button to "wake up" database. Or use a trick, but I don't want to use a loop, that's not reliable.