public static async Task RegisterAccountForPNS(UserInfo userInfo) { var isConnected = await ConnectivityManager.Instance.IsConnected(); if (isConnected) { MsgService mfaService = new MsgService(); string platformType = GetPlatformType(); var registrationId = await mfaService.Register(msgServiceUri, userInfo.PushRegistrationId, Settings.Current.DeviceToken, platformType, userInfo.PushTag); if (!string.IsNullOrEmpty(registrationId) && userInfo.PushRegistrationId != registrationId) { Settings.Current.RegistrationId = registrationId; } } }