X
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user