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 Developer
ashii007
Posts: 17
Registered: ‎01-08-2013
My Device: Playbook

strange image related error on BB10 alpha device while user taps icon to open app

Hello everyone, 

 I received the following email from app testers from RIM. I do not have a physical device, so I am unable to confirm. has anyone else see the behavior listed below.

  For reference, the application runs great in the device simulator. I just validated it.

 

Please fix the following issue(s) and resubmit your application as a new release. 

- I am testing your app on the BlackBerry Dev Alpha (OS version 10.0.9.2108). when the user tap the app icon, a JavaSript Alert appears, Access to "data:image/png;base64,iVBORwOKGgoAAAAAA…' Please fix the issue.

 

Thanks for your help

Ashish

 

Please use plain text.
New Developer
ashii007
Posts: 17
Registered: ‎01-08-2013
My Device: Playbook

Re: strange image related error on BB10 alpha device while user taps icon to open app

Any suggestions or thoughts.

 

Tester is using OS version 10.0.9.2108. 

 

Thanks again for reading this thread.

 

Ashish

 

Please use plain text.
Developer
biggerCC
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha

Re: strange image related error on BB10 alpha device while user taps icon to open app

Hi Ashish,

 

you are right: it may be a little hard to figure out where your error comes from given the limited amount of information they supplied.

 

Are you using bbUI in your project?

- - -
My approved apps @ App World
Please use plain text.
New Developer
ashii007
Posts: 17
Registered: ‎01-08-2013
My Device: Playbook

Re: strange image related error on BB10 alpha device while user taps icon to open app

I am using plain old jquery Mobile. Interestingly enough, i dont have a reference to any png in my code. I do refer to the application icon in config.xml, but thats about it.

 

I am waiting to hear back from RIM. I was just wondering if anyone else has seen such behavior.

 

Fingers crossed!

Please use plain text.
Contributor
djpip27
Posts: 29
Registered: ‎03-30-2012
My Device: Developer - Curve 8250

Re: strange image related error on BB10 alpha device while user taps icon to open app

That error sounds like you are attempting to show an image from a location that is not permitted. Do you load images from a remote website in your application? If so have you 'white-listed' the website in your config file.

Otherwise if you are loading local images how have you referenced them? I don't think you can use file:\\directory\image.png paths in your application either. Hope you get it sorted!
Please use plain text.
New Developer
ashii007
Posts: 17
Registered: ‎01-08-2013
My Device: Playbook

Re: strange image related error on BB10 alpha device while user taps icon to open app

I will double check but I believe I have following line in the config.xml:

 

<access uri="*" subdomain="true" /> 

 

Is there anything else i need to validate?

 

Thanks for all the help. People here are very generous with their time and willingness to help. I totally appreciate it.

 

Ashish

Please use plain text.
Contributor
djpip27
Posts: 29
Registered: ‎03-30-2012
My Device: Developer - Curve 8250

Re: strange image related error on BB10 alpha device while user taps icon to open app

<access uri="*" subdomain="true" /> looks right, so looks like I'm unable to help. Hopefully RIM will get back to you soon. :smileyhappy:
Please use plain text.
New Developer
ashii007
Posts: 17
Registered: ‎01-08-2013
My Device: Playbook

Re: strange image related error on BB10 alpha device while user taps icon to open app

I finally heard back from testers at RIM. I have an application with a link to third party website. The application can render the page successfully. As a part of rendering page, BB10 is throwing javascript error because that 3rd party page is trying to render facebook ad (or faceboook like page).

 

I already have following in my config.xml

 

<access uri="*" Subdomain="true"> 

 

What changes do i need to make in config.xml to override these alerts? I am assuming it will happen everytime a webpage is making API or javascript calls to twitter or facebook or google+ or similar social network.

 

Thanks for your help.

 

AShish

 

 

 

Please use plain text.
Contributor
djpip27
Posts: 29
Registered: ‎03-30-2012
My Device: Developer - Curve 8250

Re: strange image related error on BB10 alpha device while user taps icon to open app

Hi AShish,

I've suddenly had a thought - someone posted somewhere that on the latest version of the BlackBerry 10 simulator that O-Auth which allows you to sign-into services like Twitter and Facebook wasn't working in the webbrowser. Apparently the solution involved explicitly white listing twitter.com and facebook.com sub domains in the config file. I might be completely barking up the wrong tree - but seeing as no-one has replied I thought I'd post this reply. I might have seen this comment in the WebWorks issue tracker on GitHub or on this forum. Perhaps it's possible your app is also running into a problem with these domains?
Please use plain text.