[Solved] How can I set the android channel notification from code in firebase cloud function?


Solution: It seems that you can assign the category that you want to relate the message:

                    const message = {
                    android:{
                        notification:{
                            title: 'Game started!',
                            body: 'Game '+ salaName +' has started!',
                            channel_id: "notification.category.default",
                        }
                    },
                    topic: "topicName"
                };

Source: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidfcmoptions

0

solved How can I set the android channel notification from code in firebase cloud function?