share five

share five
// Your web app's Firebase configuration var firebaseConfig = { apiKey: "AIzaSyC5sjiN8zOovbRjZOxhimgKN83QbCER4TQ", authDomain: "iterable-web-push-a1d72.firebaseapp.com", databaseURL: "https://iterable-web-push-a1d72.firebaseio.com", projectId: "iterable-web-push-a1d72", storageBucket: "iterable-web-push-a1d72.appspot.com", messagingSenderId: "440815661125", appId: "1:440815661125:web:1612894a54e8a17a44732c" }; // Initialize Firebase firebase.initializeApp(firebaseConfig); messaging.requestPermission() .then(function(){ console.log('Have Permission'); return messaging.getToken(); }) .then(function(){ console.log(token); }) .catch(function(err){ console.log('Error'); })