Skip to content

request.installationId not set #325

Closed
@steven-supersolid

Description

@steven-supersolid

It seems installationId is not available in the request object in Cloud Code.

Example code:
Parse.Cloud.define('GetInstallationId', function(request, response) { response.success('installationId ' + request.installationId); });

Calling locally using parse-server:
curl \ -H "X-Parse-Application-Id: XXX" \ -H "X-Parse-Installation-Id: a" \ -H "Content-Type: application/json" \ -d '{}' \ http://localhost:1337/parse/functions/GetInstallationId

{"result":"installationId undefined"}

Calling on parse.com:
curl \ -H "X-Parse-Application-Id: XXX" \ -H "X-Parse-REST-API-Key: YYY" \ -H "X-Parse-Installation-Id: a" \ -H "Content-Type: application/json" \ -d '{}' \ https://api.parse.com/1/functions/GetInstallationId

{"result":"installationId a"}

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