Closed
Description
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
Labels
No labels