processPushMessage method
Decrypt an FCM/APNs push payload for an existing conversation (looked up by topic).
Returns a list of decoded messages — usually 1, occasionally more if the
envelope contained multiple. Each entry mirrors getMessagesAfterDate shape.
Implementation
@override
Future<List<Map<String, dynamic>>> processPushMessage(
String topic, Uint8List encryptedBytes) async {
await _ensureInitialized();
final messages = await rust_push.processPushMessage(
topic: topic,
encryptedBytes: encryptedBytes.toList(),
);
return messages.map(_messageInfoToMap).toList();
}