Skip to content

ERR! parse-server-push-adapter GCM send errored: 401 #2074

Closed
@alexanther1012

Description

@alexanther1012

I have the next problem, when I intend to send a push notification with parse server response:
captura
It is when I insert:
captura1

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

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