cordova-plugin-autostart icon indicating copy to clipboard operation
cordova-plugin-autostart copied to clipboard

Expose actions to enable/disable PackageReplacedReceiver

Open alalamav opened this issue 7 years ago • 3 comments

Currently, PackageReplacedReceiver is enabled by default. It will start the app or service when enable or enableService have been called.

It would be useful to have the ability to enable and disable PackageReplacedReceiver independently of BootCompletedReceiver.

alalamav avatar Feb 15 '18 18:02 alalamav

And please could you describe a use case of the real life for it?

ToniKorin avatar Feb 15 '18 18:02 ToniKorin

I can imagine an app that wants to restart only when updated and not on boot. For example, to mitigate the user experience of getting updated while in the foreground.

alalamav avatar Feb 15 '18 19:02 alalamav

Okay, feel free to implement, test and update the documentation. Please add it as optional parameter to the current javascript methods, so that without the new parameter the functions remains the same.

ToniKorin avatar Feb 16 '18 17:02 ToniKorin