Skip to content

Commit adf01b2

Browse files
authored
Merge branch 'main' into fix/legacy-places-api
2 parents 5c58b9d + 04b4f00 commit adf01b2

34 files changed

+392
-337
lines changed

docs/ff-concepts/adding-customization/cloud-functions.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,44 @@ For this example, we'll use the result (i.e., generated logo image URL) and set
245245
<div class="video-container"><iframe src="https://www.loom.
246246
com/embed/0c4306c1951a4d9099aa96324c7561af?sid=69709110-ad60-4e98-bf53-36a50a99e425" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
247247

248+
## 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:
255+
`https://console.cloud.google.com/functions/details/us-central1/sendUserPushNotificationsTrigger?env=gen1&project=<projectID>&tab=testing`
256+
\
257+
In here:
258+
- Replace `<projectID>` with your GCP or Firebase project.
259+
- If you want to test a different Cloud Function, update `sendUserPushNotificationsTrigger` with the relevant cloud function name.
260+
2. Paste the following JSON into the <kbd>Configure Triggering Event</kbd> text area.
261+
- If you want to test a different Cloud Function, update `sendUserPushNotificationsTrigger` with the relevant cloud function name.
262+
```json
263+
{
264+
"value": {
265+
"name": "projects/<projectID>/databases/(default)/documents/sendUserPushNotificationsTrigger/<documentID>",
266+
"fields": {
267+
"scheduled_time": { "stringValue": "" },
268+
"initial_page_name": { "stringValue": "" },
269+
"notification_title": { "stringValue": "Your friends are missing you!" },
270+
"notification_text": { "stringValue": "Please come back to Nanochat" },
271+
"user_refs": { "stringValue": "users/VXu6EvFMl5M8KMXriYRvFEWTFHA2" }
272+
}
273+
}
274+
}
275+
```
276+
3. In the `name` property:
277+
- 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.
248286

249287

250288
## FAQs
@@ -299,6 +337,3 @@ Follow the steps below to fix the issue:
299337
</p>
300338
</details>
301339

302-
303-
304-

docs/ff-concepts/alerts-notification/_category_.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/ff-concepts/alerts-notification/push-notifications.md

Lines changed: 0 additions & 298 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Alerts",
3+
"position": 8
4+
}

docs/ff-concepts/alerts-notification/alert-dialog.md renamed to docs/ff-concepts/alerts/alert-dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Alert Dialog
3-
slug: /concepts/alerts-notification/alert-dialog
3+
slug: /concepts/alerts/alert-dialog
44
sidebar_position: 0
55
tags: [Actions, Alerts & Notifications]
66
keywords: [FlutterFlow, Actions, Alerts & Notifications, Alert Dialog]

docs/ff-concepts/alerts-notification/dismiss-custom-dialog.md renamed to docs/ff-concepts/alerts/dismiss-custom-dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Dismiss Custom Dialog
3-
slug: /concepts/alerts-notification/dismiss-custom-dialog
3+
slug: /concepts/alerts/dismiss-custom-dialog
44
sidebar_position: 1
55
tags: [Actions, Alerts & Notifications]
66
keywords: [FlutterFlow, Actions, Alerts & Notifications, Dismiss Custom Dialog]

docs/ff-concepts/alerts-notification/haptic-feedback.md renamed to docs/ff-concepts/alerts/haptic-feedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Haptic Feedback
3-
slug: /concepts/alerts-notification/haptic-feedback
3+
slug: /concepts/alerts/haptic-feedback
44
sidebar_position: 4
55
tags: [Actions, Alerts & Notifications]
66
keywords: [FlutterFlow, Actions, Alerts & Notifications, Haptic Feedback]

0 commit comments

Comments
 (0)