Select the types of activity you want to include in your feed.
tangled mirror of catsky-🐱 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social
···11import UserNotifications
22+import UIKit
2334let APP_GROUP = "group.app.bsky"
45···3132 }
32333334 func mutateWithBadge(_ content: UNMutableNotificationContent) {
3434- content.badge = 1
3535+ var count = prefs?.integer(forKey: "badgeCount") ?? 0
3636+ count += 1
3737+3838+ // Set the new badge number for the notification, then store that value for using later
3939+ content.badge = NSNumber(value: count)
4040+ prefs?.setValue(count, forKey: "badgeCount")
3541 }
36423743 func mutateWithChatMessage(_ content: UNMutableNotificationContent) {
···3131 forKey: keyof BackgroundNotificationHandlerPreferences,
3232 value: string[],
3333 ) => Promise<void>
3434+ setBadgeCountAsync: (count: number) => Promise<void>
3435}
35363637// TODO there are more preferences in the native code, however they have not been added here yet.