标签: cordova ionic-framework phonegap-build
我在cordova跨平台上工作。我想在设备启动时启动后台服务:
document.addEventListener('deviceready', function() { myService = cordova.plugins.myService; upload(); }, true);