i am trying to set up push notifications for my parse server which is running on AWS. I follow the instruction on the website from Parse (http://docs.parseplatform.org/parse-server/guide/#push-notifications). When I update my server.js with the following lines of code in java script. Like the description says. I get an error after rebooting the server.
push: {
ios: {
token: {
key: '/Users/XXXXX/Documents/Projekt\ StudXXX/StuXXXX\ V3/AuthKey_764ZXXXXXX.p8',
keyId: "76XXXXXX",
teamId: "B6XXXXXX" // The Team ID for your developer account
},
topic: 'StudyXXXXXXx', // The bundle identifier associated with your app
production: false
}
}
i ad this line of code into the "var api = new ParseServer({" function. This is the Code from server.js without the push part.
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://root:gwOgXXXXX0.0.1:27017/bitnami_parse",
cloud: "./node_modules/parse-server/lib/cloud-code/Parse.Cloud.js",
appId: "XXXXXXXXXXXXXXX",
masterKey: "eb10XXXXXXXXXXXXXX8",
fileKey: "XXXXXXXXXX0",
serverURL: "http://18.219.XXXXXXXXXXXX/parse"
});
// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);
var port = 1XX7;
app.listen(port, function() {
console.log('parse-server running on port ' + port);
});
//Parse Dashboard
var ParseDashboard = require('parse-dashboard');
"server.js" 51L, 1XX5C
The Videos and tutorials are for older versions and there is no Settings on the Parse Dashboard anymore. I am open for every new way to implement push notifications to my App. I am happy about every idea to solve the problem or to get a new approach for implementing push notifications.
Thanks a lot :)