This commit is contained in:
2025-05-15 14:45:00 +02:00
parent 73a4b9a445
commit 1f4fce1e42
3 changed files with 44 additions and 2 deletions
@@ -175,11 +175,16 @@ public partial class LoginPage : BasePage
{
await CrossFirebaseCloudMessaging.Current.CheckIfValidAsync();
var token = await CrossFirebaseCloudMessaging.Current.GetTokenAsync();
Console.WriteLine($"FCM token: {token}");
await _syncService.UploadFCMToken(token);
}
catch (Exception ex)
{
Console.WriteLine("FCM init error: " + ex.Message);
await SystemHelper.ShowSnackBar("FCM üzenetküldõ inicializálása SIKERTELEN!",
SystemHelper.ColorToHex(Colors.Red),
SystemHelper.ColorToHex(Colors.Red),
SystemHelper.ColorToHex(Colors.Yellow),
15);
}
}
}