You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using Plugin.Firebase.CloudMessaging;
|
|
|
|
namespace firebase;
|
|
|
|
public partial class MainPage : ContentPage
|
|
{
|
|
int count = 0;
|
|
|
|
public MainPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private async void OnCounterClicked(object sender, EventArgs e)
|
|
{
|
|
await CrossFirebaseCloudMessaging.Current.CheckIfValidAsync();
|
|
var token = await CrossFirebaseCloudMessaging.Current.GetTokenAsync();
|
|
Console.WriteLine($"FCM token: {token}");
|
|
}
|
|
}
|
|
|