public async void RegisterForPushNotifications()
        {
            channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

            channel.PushNotificationReceived += OnPushNotificationReceived;
            InternalSaveToken(channel.Uri);
            OnTokenRefresh?.Invoke(CrossPushNotification.Current, new PushNotificationTokenEventArgs(channel.Uri));
        }
示例#2
0
 public void TokenRefresh()
 {
     OnTokenRefresh?.Invoke(this, EventArgs.Empty);
 }
示例#3
0
 protected virtual void OnRefreshTokenEvent(TokenRefreshEventArgs args) =>
 OnTokenRefresh?.Invoke(this, args);