firebase/functions-samples

Update fcm-notification sample to use latest API instead of legacy API

Open

#410 ouverte le 25 mai 2018

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (3 957 forks)batch import
help wanted

Métriques du dépôt

Stars
 (11 901 stars)
Métriques de merge PR
 (Merge moyen 7j 23h) (5 PRs mergées en 30 j)

Description

How to reproduce these conditions

Sample name or URL where you found the bug fcm-notification

Failing Function code used (including require/import commands at the top) Update fcm-notification sample to use latest API instead of legacy API with reference to https://stackoverflow.com/questions/50505274/why-use-a-legacy-api-for-a-firebase-fcm-notifications-sample/50510755#50510755

Steps to set up and reproduce Line 74 of https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js

Guide contributeur