android - what does deviceready event in cordova really do -
when creating watcher in cordova, need fire after device ready.
in ionic framework using following code that.
$ionicplatform.ready(function() { $cordovaplugin.somefunction().then(success, error); }); i want know code doing..? somefunction() , done .then(success, error);
this question answered existing cordova documentation:
cordova documentation - deviceready event
i recommend read tutorials or guides on how start hybrid app development.
success() called, when device has fired device ready event. errorshould self-explaining.
Comments
Post a Comment