Platform.ready() before ionicBootstrap?


#1

I’m trying to do a data migration prior to bootstrapping my app. Anybody know a good way to utilize ionic-native and deviceready before ionicBootstrap?

I tried document.addEventListener("deviceready", onDeviceReady, false); but it’s not doing the trick, and I can’t access the dependency injected platform object yet…

any ideas?


#2

I solved my own problem, and was able to move my data migration to inside the platform.ready() event within the main app component


#3

Hi Jason,

could you post your solution please? I’m having the same problem as well …

Thanks,

Marcel