Forum Cross Platform with Xamarin

App isn't displaying the image from the url?

I have tried many methods but I am unable to get the image to show from the URL, must be something simple?

CS:

XAML:

Best Answer

Answers

  • AsfendYarAsfendYar USMember ✭✭✭

    Are you using http or https to fetch remote images?

    It seems to be a restriction on one of Android APIs because in older versions it’s working with both protocols, but now only https is working properly.

  • JarvanJarvan Member, Xamarin Team Xamurai

    App isn't displaying the image from the url?

    What version of Xamarin.Forms did you test the code? I created a basic demo to the uri and it worked fine. Please update the nuget package to the lastest stable version and try again.

    Here is the demo file you can test on you side.

  • LouissLouiss Member ✭✭

    @AsfendYar said:
    Are you using http or https to fetch remote images?

    It seems to be a restriction on one of Android APIs because in older versions it’s working with both protocols, but now only https is working properly.

    Neither http or https is working for me.

  • LouissLouiss Member ✭✭

    @Jarvan said:

    App isn't displaying the image from the url?

    What version of Xamarin.Forms did you test the code? I created a basic demo to the uri and it worked fine. Please update the nuget package to the lastest stable version and try again.

    Here is the demo file you can test on you side.

    Running version 4.2.0709249, I did try updating the xamarin forms again the other day but didn't seem to fix it either, what version is your demo in?

  • LouissLouiss Member ✭✭

    @Jarvan Running your test demo on my side on an android emulator seems to produce no image as well.

  • JarvanJarvan Member, Xamarin Team Xamurai

    @Louiss said:

    @Jarvan said:

    App isn't displaying the image from the url?

    What version of Xamarin.Forms did you test the code? I created a basic demo to the uri and it worked fine. Please update the nuget package to the lastest stable version and try again.

    Here is the demo file you can test on you side.

    Running version 4.2.0709249, I did try updating the xamarin forms again the other day but didn't seem to fix it either, what version is your demo in?

    I tested the demo on Xamarin.Forms 4.3 and 4.5.

    Running your test demo on my side on an android emulator seems to produce no image as well.

    What the version of IDE are you using? The version of my IDE is 2019 Version 16.4.4.

  • LouissLouiss Member ✭✭

    @Jarvan said:

    @Louiss said:

    @Jarvan said:

    App isn't displaying the image from the url?

    What version of Xamarin.Forms did you test the code? I created a basic demo to the uri and it worked fine. Please update the nuget package to the lastest stable version and try again.

    Here is the demo file you can test on you side.

    Running version 4.2.0709249, I did try updating the xamarin forms again the other day but didn't seem to fix it either, what version is your demo in?

    I tested the demo on Xamarin.Forms 4.3 and 4.5.

    Running your test demo on my side on an android emulator seems to produce no image as well.

    What the version of IDE are you using? The version of my IDE is 2019 Version 16.4.4.

    I'm using 2019 version 16.3.10.

  • JarvanJarvan Member, Xamarin Team Xamurai

    Please update the VS and try again.

  • LouissLouiss Member ✭✭

    @Jarvan said:
    Please update the VS and try again.

    Just updated, no change still not working.

  • LouissLouiss Member ✭✭

    @Jarvan said:

    @Louiss said:

    @Jarvan said:
    Please update the VS and try again.

    Just updated, no change still not working.

    Have you tried other uri? Will it still not work? Check the following image uri.

    <Image Source="https://aka.ms/campus.jpg" />
    

    That one seems of worked, so due to https being needed

Sign In or Register to comment.