Skip to content

ParseObject.update/ParseInstallation.create/ParseSession.installationId #264

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

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

hellokidder
Copy link
Contributor

hi,brother!
Here are some changes I made.

  • Add a header to the ParseObject.update and ParseInstallation.create
    It's fix some bug about when I use them,return "request body is empty"

Actually:For POST and PUT requests, the request body must be JSON, with the Content-Type header set to application/json.,but I don't know much about this.I am worried that if I change all of them, there will be some errors that I don't understand, so I only changed the method I am currently using.

  • ParseSession add set installationId
    so now:
final ParseSession parseSession = ParseSession();
    var res = await parseSession.getCurrentSessionFromServer();
    if (res.success) {
      final ParseInstallation installation =
          await ParseInstallation.currentInstallation();
      parseSession.installationId = installation.installationId;
      parseSession.save();
    } else {
      print(res.error);
    }

look forward to your reply,hava a good day!

Copy link
Member

@phillwiggins phillwiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey

I think this looks logical. I can't see anything that doesn't look out of place.

Great work! I really appreciate your contributions!

@phillwiggins phillwiggins merged commit 31d874b into parse-community:release/1.0.25 Sep 3, 2019
phillwiggins added a commit that referenced this pull request Jan 11, 2020
* Release/1.0.25 - Updated versions

* Release/1.0.25 - ParseFile change

* Fix whereArrayContainsAll (#260)

* Bug fix: 'set' method should force update by default. If someone change a property of object from 'get' method and then 'set' it in ParseObject, it should be dirty. (#262)

* Fix About Retrieving Sessions (#263)

* ParseObject.update/ParseInstallation.create/ParseSession.installationId (#264)

* Fix About Retrieving Sessions

* parseObject.update/ParseInstallation.put/ParseSession.installation

* Refactored ParseUser.logout - resetting session id and deleting local data are now separate functions (#270)

* Update LICENSE (#274)

* Update LICENSE

* Update LICENSE

* Update LICENSE

* Fixed permission for ACL's getWriteAccess (#277)

* Update LICENSE

* Fixed permission for ACL's getWriteAccess

Fixes #275

* Optimize LiveQuery (#278)

* reconsitution

* reconnect when network state changed.

* reconnect when resume. (#279)

* Setting installationId in _Session object during sign-up (#293)

Excellent work!

* Release/1.0.25 - Add ParseUser update method

* Release/1.0.25 - Add ParseUser update method

* example app migration to use Sembast v2 (#294)

* Setting installationId in _Session object during sign-up

* example app migration to use Sembast v2

* cleanup and fixed a broken code (#295)

* Setting installationId in _Session object during sign-up

* example app migration to use Sembast v2

* updated .gitignore and cleaned unnecessary files in the repo

* fixed broken code after rebase

* updated .gitignore

* Release/1.0.25 - Update dependencies

Co-authored-by: 杨萧玉 <[email protected]>
Co-authored-by: kidder <[email protected]>
Co-authored-by: matskosan <[email protected]>
Co-authored-by: Artem Demyanov <[email protected]>
Co-authored-by: mregandla <[email protected]>
fischerscode pushed a commit to fischerscode/Parse-SDK-Flutter that referenced this pull request Sep 5, 2020
* Release/1.0.25 - Updated versions

* Release/1.0.25 - ParseFile change

* Fix whereArrayContainsAll (parse-community#260)

* Bug fix: 'set' method should force update by default. If someone change a property of object from 'get' method and then 'set' it in ParseObject, it should be dirty. (parse-community#262)

* Fix About Retrieving Sessions (parse-community#263)

* ParseObject.update/ParseInstallation.create/ParseSession.installationId (parse-community#264)

* Fix About Retrieving Sessions

* parseObject.update/ParseInstallation.put/ParseSession.installation

* Refactored ParseUser.logout - resetting session id and deleting local data are now separate functions (parse-community#270)

* Update LICENSE (parse-community#274)

* Update LICENSE

* Update LICENSE

* Update LICENSE

* Fixed permission for ACL's getWriteAccess (parse-community#277)

* Update LICENSE

* Fixed permission for ACL's getWriteAccess

Fixes parse-community#275

* Optimize LiveQuery (parse-community#278)

* reconsitution

* reconnect when network state changed.

* reconnect when resume. (parse-community#279)

* Setting installationId in _Session object during sign-up (parse-community#293)

Excellent work!

* Release/1.0.25 - Add ParseUser update method

* Release/1.0.25 - Add ParseUser update method

* example app migration to use Sembast v2 (parse-community#294)

* Setting installationId in _Session object during sign-up

* example app migration to use Sembast v2

* cleanup and fixed a broken code (parse-community#295)

* Setting installationId in _Session object during sign-up

* example app migration to use Sembast v2

* updated .gitignore and cleaned unnecessary files in the repo

* fixed broken code after rebase

* updated .gitignore

* Release/1.0.25 - Update dependencies

Co-authored-by: 杨萧玉 <[email protected]>
Co-authored-by: kidder <[email protected]>
Co-authored-by: matskosan <[email protected]>
Co-authored-by: Artem Demyanov <[email protected]>
Co-authored-by: mregandla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants