I have an app that allows users to specify an arbitrary URL to download data from and my app processes it into their contacts. This is designed to be done via a URLScheme.
When I do this in a standard IPhone app I can use functions to download the file from an arbitrary URL. However in phonegap I can only download from a list of whitelisted hosts I specify at compile time!
I am downloading a data file not an executable javascript file but I don't know if that makes any difference.
I have several questions.
If neither of these are possible, the only way I can think of doing this is to whitelist my own site and use my site as a proxy to fetch the remote user URL?
Does anyone have any further ideas about how I might do this?
if you add a new whitelist entry and have the value set to * you can access any URL. This is a catch all and you will only need this entry.