We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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); });
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
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
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"}
The text was updated successfully, but these errors were encountered:
I think this could be fixed in functions.handleCloudFunction(req)
var request = { params: req.body || {}, master: req.auth && req.auth.isMaster, user: req.auth && req.auth.user, installationId: req.info.installationId };
Will try and test once my setup is complete.
Sorry, something went wrong.
PR #338
Merged 238. 👍
No branches or pull requests
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"}
The text was updated successfully, but these errors were encountered: