ToniKorin / cordova-plugin-autostart

This Cordova plugin will start automatically your app after the every boot or the auto-update of your application. You can enable or disable the autostart function in your app.
https://github.com/ToniKorin/cordova-plugin-autostart
Apache License 2.0
108 stars 77 forks source link

Why doesn't work? #13

Open dasmond opened 8 years ago

dasmond commented 8 years ago

VS2015 Cordova 6.0 `(function () { "use strict";

document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false );

function onDeviceReady() {         

    cordova.plugins.autoStart.enable();         

    document.addEventListener( 'pause', onPause.bind( this ), false );
    document.addEventListener( 'resume', onResume.bind( this ), false );         
};

})();`

LOGS: I/ActivityManager( 1026): Start proc io.test.app for broadcast io.test.app/com.tonikorin.cordova.plugin.autostart.PackageReplacedReceiver: pid=0 uid=10023 gids={50023, 3003, 3002, 3001, 1028, 1015} W/BroadcastQueue( 1026): Unable to launch app io.test.app/10023 for broadcast Intent { act=android.intent.action.MY_PACKAGE_REPLACED flg=0x4000010 pkg=io.test.app(has extras) }: process is bad

How to deal with it?

ToniKorin commented 8 years ago

Have you checked the android logs?