My ionic2 app loads the main page and starts fetching the data using a custom DBService which in turn uses Cordova SQLite plugin, but at this time the platform is not ready and thus sqlitePlugin is not available.
How do I stop application to bootstrap until the platform is ready (and SQlite db is open)?
I found a solution for angular1 based apps where bootstraping is delayed until 'deviceready' event is fired.
Can anybody suggest a solution for ionic2 based apps?