We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3d5ac1 commit b440debCopy full SHA for b440deb
src/firebase-messaging-setup.ts
@@ -36,7 +36,7 @@ async function saveMessagingDeviceToken() {
36
// Get token (using the compat messaging instance)
37
// VAPID key is required for web push (generate in Firebase Console -> Project settings -> Cloud Messaging)
38
// Note: getToken is part of the v9 web API, which compat wraps
39
- const currentToken = await messaging.getToken({ vapidKey: 'YOUR_VAPID_KEY_HERE' });
+ const currentToken = await messaging.getToken({ vapidKey: 'BM1H9qfv1e_XcIB31ZeLCn8IpGOdMIwMShRej6wld8QAMkV4YqJ-eMQa1rSnwhkmVmAFw3tvUdlP2JzZmgTq4Fk' });
40
41
if (currentToken) {
42
console.log('FCM registration token:', currentToken);
0 commit comments