implemented an E2E-encrypted Nextcloud push-v2 notification system with support for RSA decryption and signature verification; introduced an iOS Notification Service Extension and native AppDelegate handlers for Talk actions (inline reply and mark-as-read); replaced the legacy notification registration with a new lifecycle managing app passwords and secure keypair storage; added background message handling with tray synchronization and a test notification utility in the settings.

This commit is contained in:
2026-07-04 22:50:18 +02:00
parent 32f7c311bc
commit 74a2ddd17f
56 changed files with 2987 additions and 285 deletions
+32
View File
@@ -0,0 +1,32 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:marianum_mobile/push/push_message_handler.dart';
void main() {
group('classifyPush', () {
test('nextcloud push has subject + signature', () {
expect(
classifyPush({'subject': 'enc', 'signature': 'sig', 'type': 'chat'}),
PushKind.nextcloud,
);
});
test('connect push identified by source', () {
expect(
classifyPush({'source': 'connect', 'title': 'Hi', 'body': 'There'}),
PushKind.connect,
);
});
test('subject without signature is not a nextcloud push', () {
expect(classifyPush({'subject': 'enc'}), PushKind.unknown);
});
test('empty subject/signature is unknown', () {
expect(classifyPush({'subject': '', 'signature': ''}), PushKind.unknown);
});
test('unrelated payload is unknown', () {
expect(classifyPush({'foo': 'bar'}), PushKind.unknown);
});
});
}