You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Testing Cloud Functions in Google Cloud console
249
+
250
+
The Google Cloud console has built-in functionality to allow you to trigger a Cloud Function for testing. This means that after deploying Cloud Functions, you can test them without writing to Firestore (either from FlutterFlow or otherwise).
251
+
252
+
Here's how to test FlutterFlow's `sendUserPushNotificationsTrigger` function in the Google Cloud console:
253
+
254
+
1. Open your browser and navigate to the following URL:
- Replace `<projectID>` with your GCP or Firebase project.
278
+
- Replace `<documentID>` with the ID of the document. This document must already exist in Firestore.
279
+
- If you're testing another function than `sendUserPushNotificationsTrigger`, update `ff_user_push_notifications` with the collection where the document is written.
280
+
4. Update the values under the `fields` property for the message you want to send.
281
+
\
282
+
The `fields` in the example above are for FlutterFlow's built-in `sendUserPushNotificationsTrigger` function. If you're testing a different Cloud Function, you will need to update the `fields` for the code in *that* function.
283
+
5. Click the <kbd>TEST THE FUNCTION</kbd> button.
284
+
285
+
The Cloud Function will now run and gather the relevant entries from Google Cloud Logging.
248
286
249
287
250
288
## FAQs
@@ -299,6 +337,3 @@ Follow the steps below to fix the issue:
0 commit comments