This is a migrated thread and some comments may be shown as answers.

Issues with images on Android

4 Answers 36 Views
NativeScript Insiders
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
TJ
Top achievements
Rank 1
TJ asked on 15 Jan 2015, 08:40 PM
I needed to add an Image to my app so I added this tag to my Page's StackPanel:

<Image url="https://bs2.cdn.telerik.com/v1/GWfRtXi1Lwt4jcqK/28d417c0-9ccb-11e4-ad75-053ddcb57c52" />

This displays great on iOS: http://i.imgur.com/1QouHmq.png. But on Android the image not present, and there's also a whole bunch of space randomly added to my layout: http://i.imgur.com/7UdFOmq.png.
 
Any idea what's going on here?

Thanks,
TJ    

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Jan 2015, 07:21 AM
Hello TJ,

It seems that https is causing the problem in this case. Here the Android exception:
01-16 16:23:13.613: W/System.err(7243): javax.net.ssl.SSLException: Fatal alert received handshake_failure
01-16 16:23:13.613: W/System.err(7243): at com.android.org.conscrypt.SSLEngineImpl.unwrap(SSLEngineImpl.java:484)
01-16 16:23:13.613: W/System.err(7243): at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:383)
 
Please use http instead!

Regards,
Vlad
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marko
Top achievements
Rank 1
answered on 16 Jan 2015, 09:12 AM
To forgo https on android.... is that a general issue in Android? This sounds really really bad if you can't consume Web APIs that are accessible with HTTPS.
0
Vlad
Telerik team
answered on 16 Jan 2015, 09:25 AM
Hi,

There should be no problem with https on Android if the server SSL certificate is valid.

Regards,
Vlad
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
TJ
Top achievements
Rank 1
answered on 16 Jan 2015, 01:49 PM
Hi Vlad,

Using HTTP worked, but the image itself is hosted in our Backend Services, so I would certainly hope that the associated SSL cert is valid.

TJ
Tags
NativeScript Insiders
Asked by
TJ
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Marko
Top achievements
Rank 1
TJ
Top achievements
Rank 1
Share this question
or