Closed
Description
I have the next problem, when I intend to send a push notification with parse server response:
It is when I insert:
My code of configuration is:
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();
// Specify the connection string for your mongodb database
// and the location to your Parse cloud code
var api = new ParseServer
(
{
databaseURI: 'mongodb://localhost:27017/myapp',
appId: 'tc',
masterKey: 'master',
clientKey: 'token',
serverURL: 'http://localhost:1337/parse',
push:
{
android:
{
senderId: '1066279412344',
apiKey: 'AIzaSyD2ysuFbFnNJNBwvILdemlxwf55q7yIHgI'
}
}
}
);
// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);
// Hello world
app.get('/', function(req, res) {
res.status(200).send('Express is running here.');
});
var port = process.env.PORT || 1337;
app.listen(port, function() {
console.log('Parse Server running on port ' + port + '.');
});
Metadata
Metadata
Assignees
Labels
No labels