08-16-2013 03:41 AM
I am working on an app for a client where I want to put their soundcloud feed into an app. I am clicking on the share option on my clients page on soundcloud and I use the embeded code they provide. If I run the Ripple simulator for BB10 everything loads fine and there are no issues. Once I package the app the widget never loads. Actually the page is blank. I am kind of stumped as to why it will not work.
Here is the code:
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2F
Could it possibly be something in the config.xml file that I need to add to have it go out and check the feed?
Solved! Go to Solution.
08-19-2013 01:28 PM
You definitely will need to whitelist the URL to any Soundcloud domains being used in your app. More info here:
Otherwise, I would recommend enabling remote web inspector, and try to debug your app running on the device:
The console or network panel should reveal any runtime errors that might be occuring.
08-21-2013 11:05 AM
I was able to get it working by whitelisting the following inside config.xml:
<access uri="https://soundcloud.com" subdomains="true"/> <access uri="https://xiti.com" subdomains="true"/> <access uri="https://sndcdn.com" subdomains="true"/> <access uri="https://scorecardresearch.com" subdomains="true"/> <access uri="https://google-analytics.com" subdomains="true"/>
These are all the domains the iframe tries to access.
In the future, look at the console tab inside Web Inspector, you will find the following:
GET https://ssl.google-analytics.com/ga.js Denied by application GET https://api.sndcdn.com/users/488027?client_id=0f8f
dbbaa21a9bd18210986a7dc2d72c&format=json Denied by GET https://sb.scorecardresearch.com/beacon.js Denied by application ....
Next, grab the domain name (only the domain name), and create a whitelist:
<access uri="https://google-analytics.com" subdomains="true"/>
Make sure to keep the https (or http) and set subdomains="true".