Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncronization issue on Nexus 5 #350

Closed
jerrysarcastic opened this issue Apr 9, 2016 · 1 comment
Closed

Syncronization issue on Nexus 5 #350

jerrysarcastic opened this issue Apr 9, 2016 · 1 comment

Comments

@jerrysarcastic
Copy link

jerrysarcastic commented Apr 9, 2016

I had a user email us with the following bug report that affects synchronization on the Nexus 5 android version. They left a pretty complete report so I am quoting it here with some edits

There is a difference in behaviour is that on the Nexus 5, going to the homescreen then re-opening Simplenote by tapping its icon in the launcher takes me to the list of notes.
On the other Android device I tested on, when I go to the homescreen and re-open Simplenote from the launcher, it takes me directly to the note I was previously editing, skipping the list of notes.

This distinction is important, as to reproduce the sync issue on the Nexus 5, you need to re-open Simplenote from the recent apps list instead of tapping its icon in the launcher. The problem I describe only occurs if the note is already open when returning to the Simplenote app on Android.

Steps to reproduce on the Nexus 5 and stock Android 6.0.1:

  1. In the Simplenote for Mac client (X), create a new note. I called it "Test note".
  2. In the Simplenote for Android client (A), open the "Test note".
  3. In X, append a new line with the text "X1". Observe that it syncs correctly to A.
  4. In A, append a new line with the text "A1". Observe that it syncs correctly to X.
  5. Press the Home button on A.
  6. In X, append a new line with the text "X2".
  7. Press the Recents button on A, then select Simplenote from the recent apps list.
  8. Observe that the note now showing on A is missing the "X2" line.
  9. In A, append a new line with the text "A2". Observe that in X, the "X2" line disappears, replaced with the "A2" line.
  10. Press the Home button on A.
  11. In X, append a new line with the text "X3".
  12. Press the Recents button on A, and select Simplenote from the recent apps list.
  13. Observe that the note now showing on A is missing the "X3" line.
  14. In X, append a new line with the text "X4".
  15. Observe that in X, both the "X3" and "X4" lines disappear after syncing. Observe that no changes show on A.

Reported in 2616443

@roundhill
Copy link
Contributor

Dupe of #243

roundhill pushed a commit that referenced this issue Aug 28, 2018
Issue: Note is stale when app is resumed. New change on app will
overwrite the server version. There are duplicate issues opened.

- #350
- #290
- #243

Step to reproduce:

1. Open a note and put it in the background.
2. Make change to the same note from web or other client
3. Bring the simplenote android app to the foreground.

Expected: New changes should appear.
Actual:   No change from the server. Editing note on Android will
          overwrite the server version.

This is because the app does not sync note from server on resume.

Changes: Stop bucket on pause so that bucket could be started correctly
onResume.

Also see https://simperium.com/docs/reference/android/#bucket-stop,
> It's recommended to "stop" (typo on the actual web page) buckets in
> activities or fragments in the onPause() method.

Tested: Perform the above repro steps and get the expected behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants