Ionic ready and Cordova onCreate


#1

Hello,
I have a Cordova plugin that needs variables set during the Cordova onCreate.

What is the correct method to add them in the Ionic flow?
Can I insert them in the $ionicPlatform.ready()? Use another $ionicPlatform method? Extend onCreate?

Thanks in advance.


#2

That necessarily plugins? beam tested:

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {

}