As far as I understand if an app creates a shortcut on home screen the status of the shortcut changes depending on what kind of shortcut it is.
- a shortcut to an app (by package name) would be deleted when the app creating it disappears
- a shortcut containing a url to be viewed stays after deletion of the creating app.
my question is how to keep a shortcut to an app on home screen after the creating app is uninstalled?
This stack shows how to create the shortcut you want.
Create Android App That Acts As A Shortcut To Our Mobile Site
When an app is uninstalled manually, I don’t think there’s a way to make it install something else at the same time.