Ionic ready and Cordova onCreate


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.


That necessarily plugins? beam tested:

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