Created
August 11, 2020 05:07
-
-
Save daubattu/3bd218226015dfa664f3895ad82c27b0 to your computer and use it in GitHub Desktop.
How to push notification in NuxtJS with Firebase Cloud Messaging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('https://www.gstatic.com/firebasejs/7.17.1/firebase-app.js'); | |
importScripts( | |
'https://www.gstatic.com/firebasejs/7.17.1/firebase-messaging.js' | |
); | |
firebase.initializeApp({ | |
apiKey: '', | |
projectId: '', | |
messagingSenderId: '', | |
appId: '' | |
}); | |
const messaging = firebase.messaging(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment