standardnotes / mobile

[Moved to https://github.com/standardnotes/app] Standard Notes for iOS and Android - https://standardnotes.com
GNU Affero General Public License v3.0
826 stars 112 forks source link

Different devices showing different versions of the same notes #315

Open traymarble opened 3 years ago

traymarble commented 3 years ago

I am using the latest versions of standardnotes, on Windows and on Android and have standardnotes Extended. Today I discovered that an edit I made to a note on my phone a few days prior does not show up in the desktop version of standardnotes. I went to 'all notes' and sorted by 'date modified' and it turns out, there are a few notes I have been editing during the past week, some on the Windows version, some on my phone, where the additions to the note do not show up on the other device. This is troubling to me, I am worried about the integrity of my notes. Usually I use standardnotes to just write down a thought without looking at it afterwards so I am not sure for how long something like this has been happening. Regarding the notes which show this behavior: I now have two different versions of each note. Both my devices are online and say my notes are saved. I can make changes to both versions and refreshing does not resolve the issue. The web version of standardnotes shows the same notes as the Windows version. I have not tried deleting the cache or all app data on the android version since I have not backed up my notes yet, but I will do that soon and will have to merge the notes manually. Something to note: I do remember having received conflict warnings before, when two different versions of notes could not be merged automatically. However, I have not received any such warnings for maybe the last month (not sure about that), but it did not occur to me that there could be an issue, I just thought I was always connected to the internet and everything went fine.

I am not sure whether I stated my problem clearly, but I can answer questions and hope someone can help me here.

moughxyz commented 3 years ago

Can you specify which versions you're using across all platforms? ("Latest" has been a moving target lately as there have been many new releases). Also, are you seeing "Potentially Out of Sync" on any of the devices? In web/desktop you'd see this in the bottom right, and on mobile, you'd see this in the left side menu.

traymarble commented 3 years ago

On Windows I am using version 3.5.6 and on Android it is version 3.5.3. I do not see any 'Potentially Out of Sync' messages on either desktop or Android. On Windows it says 'Last refreshed 11.11.2020, 17.22' (which is my correct time) in the bottom right, 'all changes saved' in the top right and on Android it says '370/370 notes and tags encrypted' and shows the Themes, Views and Tags in the left side menu. I just noticed something else in the Android app: When I go to settings, the button to sign out says: 'Sign out (undefined)'. Shouldn't it be 'Sign Out [my email address]'?

moughxyz commented 3 years ago

Hmm, you're right. It might be that your account was not migrated properly on mobile and that the app thinks you're offline. As a quick resolution, can you try signing out on mobile and signing back in, then testing sync across devices? It should hopefully start matching up after that.

The other question remains is why the migration did not succeed properly on mobile. Do you recall what version of the Android app you had been using previously (was it downloaded from Google Play, or F-Droid, or somewhere else)? And do you have a passcode set up and/or biometrics?

traymarble commented 3 years ago

Last month I received a new phone and I downloaded the standardnotes app from the google play store. I believe google play keeps my apps up to date automatically in the background, and I can see in the play store that the app was updated on the 5th of November. That is interesting, since when I take a look at the 'date modified' of the notes which are affected, the first time it has happened is the 5th of November. And yes, I have set up biometrics.

traymarble commented 3 years ago

I just signed out in the Android app and signed in again. Now my notes are synchronized with the Windows/web version and edits made appear on both again. Unfortunately the edits I had made on my phone are gone but that's fine, I made a backup.

moughxyz commented 3 years ago

Ah sorry about that, I should have mentioned that signing out will clear any local state. In any case this confirms the cause is a failed migration. We're presently digging deep into migrations and testing all sorts of scenarios, so hopefully we're able to replicate what happened here.

traymarble commented 3 years ago

Alright, thank you for helping!