-
-
Notifications
You must be signed in to change notification settings - Fork 206
currentUser doesn't get updated even after calling getUserFromServer #65
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
Labels
type:bug
Impaired feature or lacking behavior that is likely assumed
Comments
Oh I get you... The current user isn't locally being updated, even if the
server is? Is that correct?
…On Thu, Jan 31, 2019, 23:29 Eslam El-feky ***@***.*** wrote:
ParseUser.currentUser(); once called the currentUser i get doesn't get
updated again for example i update the user's values and save them to the
database and when i cal getUserfromServer it get the values right but
doesn't show in currentUser unless i completely remove the cache data like
remove the app from the phone and then the updated data is in the
currentUser but again it doesn't update at all
these are the log from the normal run i added some values to user saved it
and it does show for the getUserFromServer but not for the local
currentUser (the one with minus sign in it is the currentUser)
{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","secondarySubscription":"{"__type":
"Pointer", "className": "Subscription", "objectId":
"xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className":
"Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"
*":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
--------------{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","password":"+201144753259","services":null,"ACL":{"*
":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
and these are the logs after removing the cache => now i'm getting it right
{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","secondarySubscription":"{"__type":
"Pointer", "className": "Subscription", "objectId":
"xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className":
"Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"
*":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
--------------{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","password":"+201144753259","secondarySubscription":"{"__type":
"Pointer", "className": "Subscription", "objectId":
"xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className":
"Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"*
":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
so is that normal ??
also i think this is related to the logout issue i previously issued
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#65>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3g6iWcRkySRHoz3lP2nsw-j0WZuSks5vI3xQgaJpZM4adXIB>
.
|
Yes |
Okay thanks for the heads up. I'm still trying to figure out why we can't
delete local cache, not sure if it's the shared_preferences library or me.
I'll update this shortly.
…On Fri, Feb 1, 2019, 09:29 Saif Allah Khaled ***@***.*** wrote:
Yes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3sWPJwTfkM8THxQrTlA7Vws7wpRGks5vJAg6gaJpZM4adXIB>
.
|
Fixed in v1.0.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ParseUser.currentUser(); once called the currentUser i get doesn't get updated again for example i update the user's values and save them to the database and when i cal getUserfromServer it get the values right but doesn't show in currentUser unless i completely remove the cache data like remove the app from the phone and then the updated data is in the currentUser but again it doesn't update at all
these are the log from the normal run i added some values to user saved it and it does show for the getUserFromServer but not for the local currentUser (the one with minus sign in it is the currentUser)
and these are the logs after removing the cache => now i'm getting it right
so is that normal ??
also i think this is related to the logout issue i previously issued
The text was updated successfully, but these errors were encountered: