Device ready only on cordova