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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -