SandeepK1729 / tm

Transaction Manager for organization in duration basis
https://room-manager.vercel.app
1 stars 0 forks source link

Need Push Notifications #30

Open SandeepK1729 opened 1 year ago

SandeepK1729 commented 1 year ago
<script type="module">
  // Import the functions you need from the SDKs you need
  import { initializeApp } from "https://www.gstatic.com/firebasejs/10.3.1/firebase-app.js";
  import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.3.1/firebase-analytics.js";
  // TODO: Add SDKs for Firebase products that you want to use
  // https://firebase.google.com/docs/web/setup#available-libraries

  // Your web app's Firebase configuration
  // For Firebase JS SDK v7.20.0 and later, measurementId is optional
  const firebaseConfig = {
    apiKey: "AIzaSyDhKav7UD-8xk_gdQnbAb4SdIq5fCa2M48",
    authDomain: "room-manager-398006.firebaseapp.com",
    projectId: "room-manager-398006",
    storageBucket: "room-manager-398006.appspot.com",
    messagingSenderId: "911072549536",
    appId: "1:911072549536:web:c5254e785a437ff9f5c7c5",
    measurementId: "G-SNZWYWELYF"
  };

  // Initialize Firebase
  const app = initializeApp(firebaseConfig);
  const analytics = getAnalytics(app);
</script>
SandeepK1729 commented 1 year ago

referring : https://blog.devartis.com/sending-real-time-push-notifications-with-django-celery-and-redis-829c7f2a714f

got fcm-django documentation : https://fcm-django.readthedocs.io/en/latest/

SandeepK1729 commented 1 year ago

refering https://github.com/SandeepK1729/django_web_push_notifications_example