xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Android 10, API 29] Images not displayed when the Source property set with URL. #15689

Open VijayakumarViswanathan opened 1 year ago

VijayakumarViswanathan commented 1 year ago

Description

Images were not displayed, when the source property was set with the URL. This issue occurs with (Android 10, API 29 ) only.

Steps to Reproduce

  1. Get and Deploy the sample from the below-shared repository in Android 9. (Image will display.)
  2. deploy the sample in Android 10, Image will not be displayed. (issue)
  3. Refer to the attached Video.

Expected Behavior

Images should be displayed, when the source property was set with the URL.

Actual Behavior

Images were not displayed, when the source property was set with the URL.

Basic Information

Environment

Microsoft Visual Studio Professional 2022 Version 17.4.0 Preview 6.0 VisualStudio.17.Preview/17.4.0-pre.6.0+33027.239 Microsoft .NET Framework Version 4.8.09037

Installed Version: Professional

Visual C++ 2022 00476-80000-00000-AA746 Microsoft Visual C++ 2022

ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 17.4.318.48533 ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.4.318.48533 Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio 2.6.5000.0 Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 17.4.318.48533 Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.5000.0 Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 4.4.0-3.22518.13+7856a68c109b22de70e07580018fec601e944f46 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 17.0.22263.6 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Dotfuscator Community Edition 6.5.0+76d4669002 PreEmptive Protection - Dotfuscator CE

Extensibility Message Bus 1.4.1 (main@2ee106a) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft Azure Hive Query Language Service 2.6.5000.0 Language service for Hive query

Microsoft Azure Stream Analytics Language Service 2.6.5000.0 Language service for Azure Stream Analytics

Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud Services projects

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio 17.4.19 (8c0a575) Support for debugging Mono processes with Visual Studio.

Node.js Tools 1.5.40817.1 Commit Hash:66443775f9f3b1d8f8fee47af5002828b346688d Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 6.4.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio 17.0.32915.00 Microsoft Office Developer Tools for Visual Studio

Python - Django support 17.0.22263.6 Provides templates and integration for the Django web framework.

Python - Profiling support 17.0.22263.6 Profiling support for Python projects.

Python - VC Project Support 17.0.21344.1 Provides support for launching C++ projects with Python debugging enabled.

Python with Pylance 17.0.22263.6 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Razor (ASP.NET Core) 17.0.0.2246202+61cc048d36a3fc9246d2f04625988b19a18ab8f0 Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.0.62207.28050 Microsoft SQL Server Data Tools

Syntax Visualizer 1.0 An extension for visualizing Roslyn SyntaxTrees.

Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0 Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript Tools 17.0.10921.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.4.0-3.22518.13+7856a68c109b22de70e07580018fec601e944f46 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Cross Platform Mobile Development (Android) 17.0.33006.217 Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS) 17.0.33006.217 Visual C++ for Cross Platform Mobile Development (iOS)

Visual F# Tools 17.4.0-beta.22512.4+525d5109e389341bb90b144c24e2ad1ceec91e7b Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

VisualStudio.DeviceLog 1.0 Information about my package

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

VSPackage Extension 1.0 VSPackage Visual Studio Extension Detailed Info

Workflow Manager Tools 1.0 1.0 This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin 17.4.0.293 (d17-4@fe8fe1a) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.4.0.138 (remotes/origin/d17-4@d36bba3cc9) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.4.2 (c457c97) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 13.1.0.1 (d17-4/13ba222) Xamarin.Android Reference Assemblies and MSBuild support. Mono: a96bde9 Java.Interop: xamarin/java.interop/d17-4@fcc33ce2 SQLite: xamarin/sqlite/3.39.3@23e1ae7 Xamarin.Android Tools: xamarin/xamarin-android-tools/main@0be567a

Xamarin.iOS and Xamarin.Mac SDK 16.0.0.335 (8ac10db63) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Screenshots

Image with Issue Android 10: image

Image without issue Android 9: image

Reproduction Link

https://github.com/VijayakumarViswanathan/ImageNotDisplayedIssue

Workaround

No workaround was tried.

jtorvald commented 1 year ago

@VijayakumarViswanathan do you see anything in the logs?

I tried on a real phone with Android 10 and there it works. So this might be something with the emulator maybe?

Screenshot_20230214-104541 Screenshot_20230214-104635~2

Domik234 commented 1 year ago

Hello @VijayakumarViswanathan, have you tried to use this with direct URL instead of redirection one? Direct link

It's just an idea, but it may not respect Location header in response when status 301 appears so the result could be an empty body message.