08-06-2012 09:56 PM
Hello I am developing a blackberry playbook's apps, I create a icon of twitter with a link to twitter's user, in my chrome browser I click on the icon and open the twitter of the user, but when I install the apps in the simulator , and I try to open twitter doing clik in the twitter icon, the tablet show me a javascript alert message window that says http://twitter/user not allowed, please I need help, to solve this problem thanks attach send screen capture
08-06-2012 10:12 PM
Did you whitelist the URL in your config.xml? Any time you access an outside URI it needs to have an <access> element.
https://developer.blackberry.com/html5/documentati
R
08-06-2012 10:35 PM
Hi! below describes my config.xml
?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="1.0.0.0" id="VSPH">
<name>Viajando Sin PH</name>
<author>Francisco Ochoa</author>
<description>Consejos a mochileros</description>
<icon src="images/icono.png"/>
<content src="index.html"/>
<rim
ermissions>
<rim
ermit>access_shared</rim
ermit>
<rim
ermit>read_geolocation</rim
ermit>
</rim
ermissions>
<feature id="blackberry.ui.dialog"/>
<access uri="http://www.youtube.com" subdomains="true">
<feature id="blackberry.app.event"/>
<feature id="blackberry.invoke"/>
</access>
</widget>
thanks
08-07-2012 02:43 AM
Twitter seems to not be whitelisted in your config.xml, try to add it like you added youtube.com. You could also use
<access subdomains="true" uri="*" />
but you may not want to whitelist the whole web. Adding the follwoin should give you access to Twitter:
<access subdomains="true" uri="http://www.twitter.com" />