Skip to content

Commit 7a1a0e9

Browse files
committed
Rewrite Notifications
1 parent fb111b1 commit 7a1a0e9

File tree

6 files changed

+34
-24
lines changed

6 files changed

+34
-24
lines changed
Binary file not shown.
Binary file not shown.

docs/ff-concepts/notifications/one-signal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To enable OneSignal in FlutterFlow:
5050
2. Switch on the **Enable OneSignal** toggle.
5151

5252
3. Gather your credentials:
53-
- *App ID**: Find this in your OneSignal dashboard under **Settings > Keys & IDs >
53+
- **App ID**: Find this in your OneSignal dashboard under **Settings > Keys & IDs >
5454
OneSignal App ID**.
5555
- **API Key**: Located in the same section as the App ID, under **Rest API Key**.
5656
- **User Key**: Go to your user profile icon, then **Account & API Keys > User Auth Key**.

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

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,28 @@ In this action, you can decide who should receive the push notification by setti
231231

232232
![trigger push notifications](imgs/trigger-pn.avif)
233233

234+
## Update App Badge Count (iOS only) [Action]
235+
236+
The **Update App Badge Count** action lets you manually display a numeric badge on your **iOS app icon**. This badge typically indicates pending tasks or updates, such as unread messages, notifications, or reminders.
237+
238+
:::info[Platform Support]
239+
In Android, badges automatically appear on app icons with push notifications. We would like to add this functionality for iOS. However, we are blocked by [**this**](https://github.com/firebase/flutterfire/issues/9563) issue. Therefore, it is important to note that this action **does not automatically set the badge count** when receiving a push notification in iOS—rather, it must be triggered manually while your app is running.
240+
241+
:::
242+
243+
![badge-count](imgs/badge-count.avif)
244+
245+
:::tip[possible use cases]
246+
247+
- In a **messaging app**, you might manually increment the badge count each time a new chat message arrives while the user has the app open or decrease it as they read the messages.
248+
- In an **email app**, you could manually update the badge count each time a new email arrives while the user is actively using the app and decrease it as emails are opened or marked as read.
249+
- In a **calendar app**, you might set the badge count to reflect the number of upcoming events for the day, incrementing or decrementing it based on the user's interactions or changes in their schedule.
250+
:::
251+
252+
To implement, simply enter the number of **Badge Count** the app should display on the home screen icon.
253+
254+
![set-app-badge-count-ios](imgs/set-app-badge-count-ios.avif)
255+
234256

235257
## FAQs
236258

@@ -250,8 +272,4 @@ Also, ensure that these principals (emails) and their roles are present in the p
250272

251273
Below is a sample image for App Engine Default service account.
252274
![pn-faq-img-2](imgs/pn-faq-img-2.png)
253-
</details>
254-
255-
256-
257-
275+
</details>

docs/resources/control-flow/functions/utility-actions.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -268,24 +268,6 @@ Go to your project page on FlutterFlow and follow the steps below to define the
268268
<p></p>
269269

270270

271-
## Update App Badge Count (iOS only) [Action]
272-
This action enables you to display a badge icon with counts over iOS app icons. For example, you could use this action to show unread messages, today's reminders, or upcoming events.
273-
274-
:::info[Platform Support]
275-
In Android, badges automatically appear on app icons with push notifications. We would like to add this functionality for iOS. However, we are blocked by [**this**](https://github.com/firebase/flutterfire/issues/9563) issue. Therefore, iOS badge counts need to be configured manually using the action shown below.
276-
:::
277-
![badge-count-demo.png](img%2Fbadge-count-demo.png)
278-
279-
Follow the steps below to add this action to any widget.
280-
281-
1. Select the Widget (e.g., Container, Button, etc.) on which you want to add the action. However, you would probably chain this action after something happens in your app.
282-
2. Select Actions from the Properties panel (the right menu), and click Open. This will open an Action Flow Editor in a new popup window.
283-
3. Click on the **+ Add Action**.
284-
4. On the right side, search and select the Update App Badge Count (under Alerts/Notifications) action.
285-
5. Set the Badget Count Value.
286-
287-
![badge-count.png](img%2Fbadge-count.png)
288-
289271
## Copy to Clipboard [Action]
290272
Using this action, you can allow users to copy a particular text from your app. For example, copying a message or transaction ID and then pasting it into another application.
291273

firebase.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,6 +2337,16 @@
23372337
"source": "/concepts/alerts-notification/haptic-feedback",
23382338
"destination": "/concepts/alerts/haptic-feedback",
23392339
"type": 301
2340+
},
2341+
{
2342+
"source": "/concepts/alerts-notification/push-notifications",
2343+
"destination": "/concepts/notifications/push-notifications",
2344+
"type": 301
2345+
},
2346+
{
2347+
"source": "/concepts/alerts-notification/one-signal",
2348+
"destination": "/concepts/notifications/one-signal",
2349+
"type": 301
23402350
}
23412351
]
23422352
}

0 commit comments

Comments
 (0)