File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const messaging = firebase.messaging();
42
42
// If you would like to customize notifications that are received in the
43
43
// background (Web app is closed or not in browser focus) then you should
44
44
// implement this optional method.
45
- // [START onBackgroundMessage ]
45
+ // [START on_background_message ]
46
46
messaging . onBackgroundMessage ( function ( payload ) {
47
47
console . log ( '[firebase-messaging-sw.js] Received background message ' , payload ) ;
48
48
// Customize notification here
@@ -55,4 +55,4 @@ messaging.onBackgroundMessage(function(payload) {
55
55
self . registration . showNotification ( notificationTitle ,
56
56
notificationOptions ) ;
57
57
} ) ;
58
- // [END onBackgroundMessage ]
58
+ // [END on_background_message ]
You can’t perform that action at this time.
0 commit comments