05-14-2012 05:18 AM
I have an small jquery mobile app for blackberry platform. In Ripple emulator, Chrome plugin, works fine all the getJSON request, but in RIM Simulator (blackberry 9300) with the app make by PhoneGap Build the getJSON request don't retrieve the data, show the loading spinner in infinite loop.
Could be something in the configuration file? Thanks a lot for any help!
Solved! Go to Solution.
05-14-2012 06:10 AM
Did you setup an access element for the domain you are making the request to? You need to whitelist any domains your app needs to contact. Ripple doesn't enforce this rule.
<access uri="http://www.mydomain.com" subdomains="true"> <feature id="blackberry.app.event" required="true" version="1.0.0"/> </access>
https://bdsc.webapps.blackberry.com/html5/document
05-14-2012 06:47 AM
05-14-2012 11:08 AM
There also may be an issue of cross-site-scripting. Read this post on how to enable $.support.cors = true:
http://stackoverflow.com/questions/7852225/is-it-s
You want to launch the browser from your WebWorks app? You can do that using the blackberry.invoke and blackberry.invoke.BrowserArguments API. Here is the documentation, as well as a code sample:
https://bdsc.webapps.blackberry.com/html5/apis/bla
05-20-2012 03:34 PM
05-27-2012 05:02 AM
I tested the application on a real phone, model 9300, and all work correctly, the simulator is not reliable.