Created
August 11, 2020 05:11
-
-
Save daubattu/7b812ef40396196c8c18a68147474f3c 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
import * as firebase from 'firebase/app'; | |
import 'firebase/messaging'; | |
if (!firebase.apps.length) { | |
firebase.initializeApp({ | |
apiKey: '', | |
projectId: '', | |
messagingSenderId: '', | |
appId: '' | |
}); | |
} | |
export default firebase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment