Goal of this task is to clean up shortcut permissions + test shortcut deletion logic when a blog is deleted.
As part of this PR, shortcuts were deleted from DB and uninstalled when a blog was deleted.
Even though your app cannot remove pinned shortcuts, it can still disable them.
We should
- Cleanup
INSTALL_SHORTCUT, UNINSTALL_SHORTCUT permission from AndroidManifest.
- Delete shortcut for a blog from DB when a blog is deleted from DB on logout.
- (Optional) Disable shortcuts on logout preferably with a custom message about why they're disabled. This is optional as the shortcut will still remain pinned on the home screen and the user will have to explicitly delete them. However, with the disabled pinned shortcut, we can provide a message why they are unavailable now.
Goal of this task is to clean up shortcut permissions + test shortcut deletion logic when a blog is deleted.
As part of this PR, shortcuts were deleted from DB and uninstalled when a blog was deleted.
FluxC:SiteStore,PostStoremigration (1, 2, 3).INSTALL_SHORTCUTbroadcast, the app now creates pinned shortcuts. These pinned shortcuts have a limitation:We should
INSTALL_SHORTCUT,UNINSTALL_SHORTCUTpermission fromAndroidManifest.