public async void RegisterForPushNotifications() { channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); channel.PushNotificationReceived += OnPushNotificationReceived; InternalSaveToken(channel.Uri); OnTokenRefresh?.Invoke(CrossPushNotification.Current, new PushNotificationTokenEventArgs(channel.Uri)); }
public void TokenRefresh() { OnTokenRefresh?.Invoke(this, EventArgs.Empty); }
protected virtual void OnRefreshTokenEvent(TokenRefreshEventArgs args) => OnTokenRefresh?.Invoke(this, args);