Alex,Thanks to @SathyaPrasad the workaround at this point in time is to force Phonegap/Cordova to use HTTP.Add the following for web maps:esri.arcgis.utils.arcgisUrl = esri.arcgis.utils.arcgisUrl.replace("file:", "http:");
And, if you are using the locator (geocoder) widget:widget._arcgisGeocoder.url = widget._arcgisGeocoder.url.replace("file:", "http:")
Here's a psuedo-code example using the new AMD pattern: require(["esri/map","esri/arcgis/utils","esri/dijit/Legend","esri/dijit/Scalebar"],
function(Map,utils,Legend,Scalebar) {
var map = null;
utils.arcgisUrl = utils.arcgisUrl.replace("file:", "http:");
var mapDeferred = utils.createMap("4778fee6371d4e83a22786029f30c7e1", "mapDiv");
mapDeferred.then(function(response) {
dojo.byId("title").innerHTML = response.itemInfo.item.title;
dojo.byId("subtitle").innerHTML = response.itemInfo.item.snippet;
map = response.map;
...
...
...
}