Firebase Cloud Messaging notification from Java instead of Firebase Console

前端 未结 7 1786
野趣味
野趣味 2020-12-12 16:21

I am new to Firebase and I am running into errors such as mismatch sender id and Authentication Error with HTTP status 401 when my Java application tries to send a notificat

7条回答
  •  情歌与酒
    2020-12-12 17:20

    On:

    // Obtain serverKey from Project Settings -> Cloud Messaging tab // for "My Notification Server" project in Firebase Console. String serverKey = ;

    You must obtain the key for your android app.

    And thank you, I was struggling to build a service to send/receive notifications for the app. Saw your question, tried to get it right, and used to build mine. Hope this will help you :)

提交回复
热议问题