Blank Image when loading from remote url

Viewed 153

Everything seemed to work fine, however when I try to load an image from remote url, it shows up blank on debug device. This is when deploying from VS on Windows to physical iPhone device.

It works fine in iOS simulator and Android emulator.

Tried the following:

image.Source = new Uri(url);
image.Source = ImageSource.FromUri(new Uri(url));

As well as things like loading the image from stream using ImageSource.FromStream

My best guess is it has got something to do with permissions?! But the app seemingly connects just fine with the server API. Why would it have any trouble loading image from the same server?

Update: It seems the problem only exists when debugging from Windows (Using Xamarin Hot Restart). Deploying the same project from a Mac didn't cause the same error. Hoping for a fix to this specific issue, as developing on Windows is my personal preference.

0 Answers
Related