Files
BitGet_API/Bitget_App/MainPage.xaml.cs

34 lines
715 B
C#
Raw Permalink Normal View History

2024-06-02 22:46:22 +09:00

using Plugin.LocalNotification;
namespace Bitget_App
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
Permissions.RequestAsync<Permissions.PostNotifications>();
}
private void OnCounterClicked(object sender, EventArgs e)
{
var request = new NotificationRequest
{
NotificationId = 1000,
Title = "MEDIUM",
Subtitle = "Hello! I'm Erdal",
Description = "Local Push Notification",
BadgeNumber = 42
};
LocalNotificationCenter.Current.Show(request);
}
}
}