Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
vpgs
Posts: 4
Registered: ‎11-20-2013
My Device: Z10

Images don't load in 10.2

[ Edited ]

Hi,

 

We currently have a problem with our application since 10.2 is out (no problem with 10.1).

All images coming from httpS://m.example.com are displayed but not images from http://m.example.com

Fiddler shows that no call to the images is done.

We installed the application with debug compilation and no error is displayed.

 

- The last SDK is used

- Our application encapsulates a web application using : window.location = 'https://site';

- Config.xml declares :

<access uri="http://m.example.com" subdomains="true" />
<access uri="https://m.example.com" subdomains="true" />

<access uri="*" />

 

 

Any idea ? Is it a problem with mixed content in 10.2 ?

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Images don't load in 10.2

This could be security related; an application hosted at HTTPS accessing resources on HTTP would be insecure. I've seen this on a few occassions but need to check if there is a way to explicitly allow this.

 

A few suggestions to try.

 

In your config.xml:

 

<access uri="http://example.com" subdomains="true" />

The subdomains="true" should handle the m.example.com scenario.

 


Or completely disabling web security:

http://developer.blackberry.com/html5/documentation/param_element.html

 

<feature id="blackberry.app">
    <param name="websecurity" value="disable" />
</feature>

 

 


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
New Contributor
vpgs
Posts: 4
Registered: ‎11-20-2013
My Device: Z10

Re: Images don't load in 10.2

Thank you for your answer. We win 2 lines in config.xml removing useless domain lines.

However, I tried the two solutions but it didn't change anything about the problem.

 

Any other suggestion ?

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Images don't load in 10.2

Not off the top of my head. If you're able to provide a complete sample config.xml and index.html that produces this issue (a basic version for testing purposes), I'd be happy to investigate though.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
New Contributor
vpgs
Posts: 4
Registered: ‎11-20-2013
My Device: Z10

Re: Images don't load in 10.2

I just sent it to you e-mail address, thank you.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C

Re: Images don't load in 10.2

SVG?

 

I know they don't work (in for unfixed fixes)

 

Start simple - PNG/JPG local then move out and find out where it fails

 

Basic discovery is always good




Click the like button if you find my posts useful!