Skip to content

Notifications in your iOS app

From FeedzzieKit 0.4.0, the board has a bell in its bar. It tells people when an idea they care about changes, inside your app: they are not push notifications, and you set nothing up on the server. Install the SDK first: Add FeedzzieKit to your iOS app.

The bell follows the ideas a person sent from this device and the ideas they voted on:

  • an idea that moves forward, to Planned, In progress or Shipped: each step is a notification of its own;
  • an idea they sent that is closed or found unlikely to build. An idea they only voted on says nothing when it is declined.

You change an idea’s status in the dashboard, or with the REST API, as always. The SDK finds the change the next time the person opens the board, or when your app asks for the count (below).

The bell shows the number of unread notifications on a red badge. Tapping it opens Notifications, with two groups, newest first: New, the unread ones, and Earlier, the read ones. Each row has the idea’s title, its new status, Your idea or You voted, and when the change was found. Tapping a row opens the idea.

A notification stays unread until the person taps it, swipes it as read or taps Mark all as read: opening the board or the screen marks nothing. A read notification stays on the device for 30 days.

With nothing to show, the screen says No notifications.

Feedzzie.ideaUpdatesCount() answers how many notifications are unread. Show it on the row that opens the board:

import SwiftUI
import Feedzzie
struct ContentView: View {
@State private var unread = 0
var body: some View {
NavigationStack {
List {
NavigationLink {
Feedzzie.FeedbackListView()
} label: {
Label("Suggestions", systemImage: "lightbulb")
}
.badge(unread)
}
.navigationTitle("Settings")
.task { unread = await Feedzzie.ideaUpdatesCount() }
}
}
}

It asks Feedzzie at most once a minute and otherwise answers from the device. When Feedzzie does not answer, it gives the last number it knew. It marks nothing as read, and it answers 0 before configure and while notifications are off.

Nothing new leaves the device: to see how the ideas stand, the SDK sends only their ids, on the same reads the board already makes. The device keeps the ideas it follows, with the last status it saw for each, and the notifications, up to 200 of each. If your privacy policy lists what your app keeps on the device, add it; your App Privacy answers do not change.

Set this next to configure:

Feedzzie.config.ideaUpdates = .hide

The board then shows no bell, ideaUpdatesCount() answers 0, and the SDK follows no ideas.

  1. In your app, open the board and tap the bell: Notifications opens and says No notifications.
  2. Vote for an idea whose status is Open.
  3. In the dashboard, change that idea’s status to Planned.
  4. Wait a minute, then open the board again in the app: the bell shows 1, and Notifications lists the idea under New, with You voted. If you added the badge, the Suggestions row shows it too.

The board does not ask Feedzzie again within a minute of its last load, so a change made in that minute shows after it.

The FeedzzieKit README has the details: upgrading from an older version, accessibility and the exact limits.