push: {} // ✅ Enable Push Notifications explicitly // Check if PushNotifications module is available
Home

Blogs

Start Journey with InCred Premier

Latest Insights on Market Linked Debentures (MLDs)

  • There are no data under this category.

Latest Insights on Personal Finance

Latest Insights on Life Insurance

  • There are no data under this category.

Latest Insights on Campaign Insurance

  • There are no data under this category.

Latest Insights on Unlisted Product

  • There are no data under this category.

Latest Insights on Knowledge Center

  • There are no data under this category.

Start your investment journey with InCred Premier today

// Import Firebase SDKs // Firebase Config - Replace with your Firebase config storageBucket: "incred-7cbdd.appspot.com", // Fixed incorrect storage URL // Initialize Firebase // Register Firebase Service Worker // Request Notification Permission getTokenWithVapidKey(); // Get FCM token // Get FCM Token with VAPID Key // Send the token to your server if needed // sendTokenToServer(token); // Handle Foreground Messages // Call function to ask for notification permission