hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.5k stars 236 forks source link

Unreliable Item Addition via Share Menu on Android #513

Open lucius346346 opened 1 month ago

lucius346346 commented 1 month ago

Description: When using the Android share menu to add items to Hoarder, the process is unreliable. Links are either:

For example:

  1. I add a link to Hoarder via the share menu.
  2. I see the "Hoarded" screen as expected, then exit the app.
  3. Upon returning to the app, I see the same screen again, and Hoarder adds the item again, resulting in duplicate entries.

Steps to Reproduce: Use the share menu outside of the Hoarder app (e.g., from a browser) to add a link. Observe if the link is added correctly, or if it is added multiple times. Exit and re-enter the app to check for duplicates.

Expected Behavior: The shared link should be added once, with no duplicates or missing entries.

Actual Behavior: Links may not be added at all or may be added multiple times.

Device/Environment: Platform: Android Version: 12 App Version: 1.6.3

nicktheone commented 1 month ago

Facing kind of the same issue. In my case I've yet to see duplicate entries but I can easily reproduce the fail to add behavior when sharing a link.

Basically, if Hoarder is already open in background, when sharing a link from another app I get success screen and it prompts me to add the new entry to a list. If, instead, the app wasn't already open in background sharing a link from another apps just opens Hoarder. I need to repeat the sharing process in order to actually add to the database.

Fuckingnameless commented 2 weeks ago

same here, would a pwa work better?

MohamedBassem commented 1 week ago

I can't seem to reproduce either of the two problems. Can someone record their screen showing the repro?

lucius346346 commented 1 week ago

I'll try to record it, but it's hard for me because it happens randomly. Is there a way we can find something in the logs?