feat: try push handling

This commit is contained in:
mso7nueh
2026-03-18 15:39:13 +03:00
parent 3d7755a9a2
commit 4f241f7db6
4 changed files with 56 additions and 72 deletions

View File

@@ -70,6 +70,11 @@ class PushNavigationHandler {
}
static void _handleMessageInternal(RemoteMessage message, {required String source}) {
developer.log(
'PushNavigationHandler: received message. data=${message.data}, notification=${message.notification?.title}, source=$source',
name: 'PushNavigationHandler',
);
final data = message.data;
// Пытаемся взять URL из action_url или action (бэкенд шлёт и то и другое)
@@ -80,7 +85,7 @@ class PushNavigationHandler {
if (rawUrl != null && rawUrl.isNotEmpty) {
developer.log(
'PushNavigationHandler: navigating by url=$rawUrl, source=$source',
'PushNavigationHandler: manual navigation by url=$rawUrl, source=$source',
name: 'PushNavigationHandler',
);