WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Cleanup QuickPost shortcut permissions and delete shortcuts from db when a blog is deleted

Open ashiagr opened this issue 2 years ago • 3 comments

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.

ashiagr avatar Jul 04 '22 02:07 ashiagr

Fails
:no_entry_sign:

Please add a type label to this issue. e.g. '[Type] Enhancement'

Generated by :no_entry_sign: dangerJS

Fails
:no_entry_sign:

Please add a type label to this issue. e.g. '[Type] Enhancement'

Generated by :no_entry_sign: dangerJS

Fails
:no_entry_sign:

Please add a type label to this issue. e.g. '[Type] Enhancement'

Generated by :no_entry_sign: dangerJS