Skip to main content

decrypt_mobile_push_notification_payload

Function decrypt_mobile_push_notification_payload 

Source
pub fn decrypt_mobile_push_notification_payload(
    data_dir: String,
    owner_pubkey_hex: String,
    device_nsec: String,
    raw_payload_json: String,
) -> MobilePushNotificationResolution
Expand description

Decrypt a notification payload against the persisted double-ratchet state under data_dir. Use from the FCM service (Android) or Notification Service Extension (iOS) where there’s no live FfiApp. Falls back to the generic resolver when keys, payload, or storage are unavailable so the user still gets some notification.