skip to Main Content

JS/Firebase – messaging.onBackgroundMessage is not a function

Here is my whole code: import { initializeApp } from "https://www.gstatic.com/firebasejs/9.16.0/firebase-app.js"; import { getMessaging, getToken } from "https://www.gstatic.com/firebasejs/9.16.0/firebase-messaging.js"; //This data is filled correctly just clearing it here for the question const firebaseConfig = { apiKey: "", authDomain: "", projectId: "t",…

VIEW QUESTION

How to make the button turn green when upon clicking it – Flutter

the data is display all using the streamBuilder and I'm using the return ListView.Builder by adding the onTap button child: StreamBuilder<QuerySnapshot>( stream: FirebaseFirestore.instance .collection('prayers') .orderBy('prayerId') .snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return const CircularProgressIndicator(); } itemCount: documents.length, itemBuilder:…

VIEW QUESTION
Back To Top
Search