Firebase functions cloud messaging notification not being recieved

When I send a notification from the Firebase cloud messaging console, my device receives it without a problem, but when I send it via a cloud functions, the function...

dart: why local functions can not call each other?

<pre class="lang-dart prettyprint-override"><code>// OK, it works! void global_1() =&gt; global_2(); void global_2() =&gt; global_1(); void main() { // ERROR Local v...

Type Casting Problem While Using `List.map`

I am trying to use the <code>List.map</code> function but I can't make it work. Here I have a <code>data</code> variable of type <code>List&lt;List&lt;dynamic&gt;&gt;<...

How to pass a key to a function?

I have several buttons, images to which I pass through the Map collection. When clicking on the button, I would like to receive the transmitted image key and write it...

How to send fcm notification using flutter and firebase realtime database

i am trying to do firebase realtime messaging code in node.js,but i am confuce about how to do that? const doc = snap.data() console.log(doc) <pre><code>cons...

How to declare a variable depending on if statement in Dart like in Kotlin?

How to declare a variable depending on if statement in Dart? In Kotlin it would look like this: <pre><code> val max = if (a &gt; b) { a } else {...

How to get the token from firebase_auth

I'd like to get the auth token from firebase (email and password auth) to authenticate in my firebase cloud function. It seems like the functions getIdToken() and getT...

Returning functions for events

I want to call a function that would return another function to be used as onChange event handler for a Textfield input. I am trying the code below, but for so...

The return type List&lt;DataRow&gt; isnt a DataRow, as required by the closures context

` <pre><code>DataTable( showBottomBorder: true, columnSpacing: 60, border: TableBorder.symmetric(...

Too much delay in the completion of the cloud function

This is the cloud function that I'm using <em>to send notification to the shopkeepers when an order is accepted by the shipper.</em> <strong>But sometimes it takes at...

Privacy Options using NodeJS for an Social media app

I M building a social media app similar to Instagram and new to NodeJS And Firebase. I want app to have a similar privacy setting to that of Instagram like private pr...

Run method only if exists

How can I run a method only if it exists? I tried the following but it didn't work: <code>widget.onChangeHandler ?? widget.onChangeHandler(selectedItem);</code>...

Stripe error the customer has not entered their payment method in flutter

I have integrated <strong>flutter_stripe 2.0.1</strong> plugins in my flutter application using Firebase CLI. getting a successful response of paymentIntent from fireb...

Error connecting to local Firebase functions emulator from Flutter app

After setting up my project with a local Firebase functions emulator as my backend, and calling my Firebase onCall function from my Android emulator, I get this very n...

Understanding JSON conversions in flutter, NodeJS and Cloud Functions. Facing major issues in code

Here is the code I use in my flutter app to send JSON data to my server written in nodejs: <pre><code> if (DEBUG) print('*: ' + jsonEncode({'order': Provider.of...