diff --git a/src/Android/Services/ClipboardService.cs b/src/Android/Services/ClipboardService.cs index fbb7a1ffb8..e6a1ac1c5c 100644 --- a/src/Android/Services/ClipboardService.cs +++ b/src/Android/Services/ClipboardService.cs @@ -49,12 +49,6 @@ namespace Bit.Droid.Services } } - public bool IsCopyNotificationHandledByPlatform() - { - // Android 13+ provides built-in notification when text is copied to the clipboard - return (int)Build.VERSION.SdkInt >= 33; - } - private void CopyToClipboard(string text, bool isSensitive = true) { var clipboardManager = Application.Context.GetSystemService(Context.ClipboardService) as ClipboardManager; diff --git a/src/App/Services/MobilePlatformUtilsService.cs b/src/App/Services/MobilePlatformUtilsService.cs index bea6e52f19..5e97683816 100644 --- a/src/App/Services/MobilePlatformUtilsService.cs +++ b/src/App/Services/MobilePlatformUtilsService.cs @@ -134,11 +134,7 @@ namespace Bit.App.Services public void ShowToastForCopiedValue(string valueNameCopied) { - if (!_clipboardService.IsCopyNotificationHandledByPlatform()) - { - ShowToast("info", null, - string.Format(AppResources.ValueHasBeenCopied, valueNameCopied)); - } + ShowToast("info", null, string.Format(AppResources.ValueHasBeenCopied, valueNameCopied)); } public bool SupportsFido2() diff --git a/src/Core/Abstractions/IClipboardService.cs b/src/Core/Abstractions/IClipboardService.cs index f5a7e4699b..ebbe2d9750 100644 --- a/src/Core/Abstractions/IClipboardService.cs +++ b/src/Core/Abstractions/IClipboardService.cs @@ -15,10 +15,5 @@ namespace Bit.Core.Abstractions /// Expiration time in milliseconds of the copied text /// Flag to mark copied text as sensitive Task CopyTextAsync(string text, int expiresInMs = -1, bool isSensitive = true); - - /// - /// Returns true if the platform provides its own notification when text is copied to the clipboard - /// - bool IsCopyNotificationHandledByPlatform(); } } diff --git a/src/iOS.Core/Services/ClipboardService.cs b/src/iOS.Core/Services/ClipboardService.cs index 1b68b7f1c2..abe1e23b26 100644 --- a/src/iOS.Core/Services/ClipboardService.cs +++ b/src/iOS.Core/Services/ClipboardService.cs @@ -38,11 +38,5 @@ namespace Bit.iOS.Core.Services ExpirationDate = clearSeconds > 0 ? NSDate.FromTimeIntervalSinceNow(clearSeconds) : null })); } - - public bool IsCopyNotificationHandledByPlatform() - { - // return true for any future versions of iOS that notify the user when text is copied to the clipboard - return false; - } } }