Skip to content

Parse.User.signUp doesn't pass installationId #536

Closed
@smassin

Description

@smassin

As the title suggests, using

Parse.User.signUp(null, {useMasterKey: true, installationId: '...'})

does not actually pass the installationId.

I spent more time than I probably should tracking down the issue here parse-community/parse-server#3996

The short answer is Parse.User.signUp actually does a ParseObject.save() at its core which does not send an installationId. Inserting the following code just before this line
solves the problem:

if (options.hasOwnProperty('sessionToken') && typeof options.sessionToken === 'string') {

if (options.hasOwnProperty('installationId')) {
  saveOptions.installationId = options.installationId;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions