1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-firebase-cloud-messaging/static/firebase-messaging-sw.js

10 lines
280 B
JavaScript
Raw Normal View History

/* global importScripts, firebase */
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js')
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js')
firebase.initializeApp({
messagingSenderId: 'your sender id'
})
firebase.messaging()