Hi,
Configured according to instructions – https://github.com/tinode/webapp/blob/master/push.md
1) Registered the project at https://firebase.google.com/
2) Configured and downloaded the file – "credentials.json",
3) Double checked that /root/tinode/webapp/firebase-init.js contains the following keys: "apiKey", "messagesSenderId", "projectId", "appId", "messagesVapidKey"
4) Copied the server key by Google-provided to 'tinode.conf' – https://github.com/tinode/chat/blob/master/server/tinode.conf#L511
Commented out the rest:
[...]
//"credentials": {
// "type": "service_account",
// "project_id": "your-project-id",
// "private_key_id": "some-random-looking-hex-number",
// "private_key": "-----BEGIN PRIVATE KEY----- base64-encoded bits of your private key \n-----END PRIVATE KEY-----\n",
// "client_email": "firebase-adm...@your-project-id.iam.gserviceaccount.com",
// "client_id": "1234567890123456789",
// "auth_uri": "https://accounts.google.com/o/oauth2/auth",
// "token_uri": "https://oauth2.googleapis.com/token",
// "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
// "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-abc123%40your-project-id.iam.gserviceaccount.com"
// },
[...]
5) Opened ports in the firewall for Tinode: 3478 (udp|tcp), 5349, 6060, 7880 (tcp).
And opened ports for Google-push: 5228, 5229, 5230 (tcp).
6) Starting the server Tinode, when connecting, it gives an error: «Failed to initialize push notifications»
p.s.
Tell me please, what am I doing wrong?
Thanks.
There is a suggestion that I entered the "messagesVapidKey" incorrectly, do I understand correctly that you need to copy 'Certificate'?