cordova-plugin-autostart
cordova-plugin-autostart copied to clipboard
Expose actions to enable/disable PackageReplacedReceiver
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.
And please could you describe a use case of the real life for it?
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.
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.