Skip to content

pranay08598/firebase

Repository files navigation

firebase

  1. add firebase project .
  2. After createing project click "+ Add app" button then select web platform .
  3. create firebase config variable .
  4. add that variable in firebase-inti.js file .
  5. add messagingSenderId in firebase-messaging-sw.js file .
  6. add header-footer.php file link and script perfect place .
  7. when send notification that time use curl.php file function .
  8. firebase-messaging-sw.js file in project root folder . eg(/xampp/htdocx/firebase-messaging-sw.js)
  9. firebase notification is work only localhost and https url.