cordova - Phonegap application issue -
i'm developing app on timeout update data on db , consequently change view on page relative data. app works on chrome , firefox when run on device data doesn't update on db update. maybe memory cache problem? line maybe has error?maybe "$(window)"?
current_user.set_last_activity(); $(window).bind('onload',setinterval(function(){current_user.set_last_activity();},5000)); this.check_users_online() ; $(window).bind('onload', setinterval(function(){self.check_users_online();},5000));
in logcat appeared error:
08-20 00:12:57.023: e/suman-statusbarpolicy(1658): <!>com.android.systemui.statusbar.policy.statusbarpolicy 1069<!> mservicestate.getroaming()false
cordova applications need declare urls plan pull data from. list of known host names "whitelist".
your browser may more flexible cordova needs whitelist entry.
here documentation on adding domain whitelist.
=edit=
try binding deviceready
event instead of onload
event.
Comments
Post a Comment