-
Notifications
You must be signed in to change notification settings - Fork 28
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
measurementsets "disappering" #17
Comments
Saved measurement list only shows the user's measurements. So when log out, measurements you created as "someone" will disappear because when you log out you are not that someone. When you create measurement without logging in they will have no user assigned. But when you log in app will assign those measurements to logged in user. So first part of this issue is expected behavior. But when you log in again those measurements you created while logged out should be assigned to you. So will look in to that correct it. |
I'm not sure what to think about the part where anonymous records are assigned to a user when they log in - while I understand the reasoning (user uses app w/o log in, later they log in and 'claim' the records they created earlier) the whole thing seems rather confusing to me. We may want to make this a lot simpler by simply not allowing the app to be used 'anonymously'. User has to log in at all times. By now, we only support Google Accounts, but that might be changed soon, so a simple "email/password" login would also work. When "logging" out, the user would effectively disconnect their account from the app, so for privacy reasons all data left on device would need to be purged, including measurementsets. I'm don't think we even need to provide an option inside the app, since that can be achieved via Android's system settings. |
I first created the app in a way where you have to log in to create measurements. But I was told to make it fully offline capable. So this is the solution I came up with. I couldn't think of any other way to facilitate both online and offline features. But if we assume that a phone is a personnel device this thing wont be a huge issue. I can make the log in a must if you want. But again that will destroy the offline capability. |
The idea behind offline was more to be able to still use the app while temporary offline, e.g. when I'm taking measurements (which can be a long-running process where I have to move around a lot) the app should not fail or lose data because the Wifi disconnects. If the user needs to be online to sign into the app first time that's reasonable I think, even though I still think there must be a way to do even that offline when using an Android-phone. After all, the users ID is basically tied to the phone already, no? Anyway, as I said, even needing to be online for initial setup is still good enough as long as they can use the App offline once it's linked to their account. |
Then shall I add the the functionality to make initial sign in a must? And we can get user's email from phone. But not his name and password. Getting email that way is kind of frowned upon. |
OK, just ask for sign up on first start and we will not try to get the
|
I disabled create and saved buttons if user is not signed in and alert him to sign in. Please check branch issue_17. |
Is branch issue_17 working fine? Can I create a PR for that? |
Please create PRs whenever you feel you are ready. We will review and merge them if we consider it done. If there is more work and stuff get's pushed to the branch, it will show up in the PR automatically. |
(same when I create the first set without login - nothing synced after a login)
the measurements created offline should be synced, after a login
The text was updated successfully, but these errors were encountered: