I have written an application the uses OAUTH to connect to a third party web service which works fine and now I am trying to download some data from this third party site.
My code below works as expected on the simulator, but on the actual device when I trigger this request the Garmin Connect App on the iPhone crashes and shuts down, has any else experienced this and does anyone know what might be wrong as there is nothing of use in the log file after this command is triggered.
...
Comm.makeWebRequest(
"api.thirdpartysite.com/search",
{
"location" => long + "," + lat,
"limit" => 6,
"oauth_token" => "USERS TOKEN IS ADDED HERE"
},
{
"Content-Type" => Comm.REQUEST_CONTENT_TYPE_URL_ENCODED
},
method(:onReceiveData)
);
}
// Receive the data from the web request
function onReceiveData(responseCode, data) {
Sys.println("We never reach this point on the device, we do in the simulator...");
}
Any help would be much appreciated, I don't think I am doing anything wrong as it works fine on the simulator but on the device it kills the "Garmin Connect" app on my phone and never returns data to the device.
Cheers,
Chris