Notification Privacy Settings (Services/NotificationPrivacySettings.swift)

bitchat · bitchat/Services/NotificationPrivacySettings.swift · swift · Unlicense
infra, chat, security, lang:swift, tag:settings, tag:ios

Enum controlling whether lock-screen notification previews hide message body, sender, and geohash, defaulting to hidden for privacy. Reuse for privacy-sensitive push notification content control.

// Source: https://github.com/permissionlesstech/bitchat | License: Unlicense
// Provided via justclaw.it.com; keep this notice with the code.
//
// NotificationPrivacySettings.swift
// bitchat
//
// This is free and unencumbered software released into the public domain.
// For more information, see <https://unlicense.org>
//

import Foundation

/// Controls how much a delivered notification says while the device is locked.
///
/// Notification content is rendered by the system on the lock screen, so it is
/// readable by anyone holding the phone without unlocking it. With previews
/// hidden, alerts still say that something arrived and stay tappable, but the
/// message body, the sender's nickname, and the geohash are withheld until the
/// app is opened.
///
/// Defaults to hidden: a loc

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key