I am trying to get the WebRequest sample from the SDK working in Eclipse, without luck.
I use Eclipse Version: 2023-06 (4.28.0) with the latest SDK 6.2.1 and the WebRequest sample from SDK 6.2.1 The sample project builds without errors and open in the CIQ Simulator just fine. When the widget opens in the simulator, the screen on the device says ‘Press menu or select button’. When I press one of the buttons I get ‘Failed to load - Error 404’
If I copy the web address from the makeRequest function in the WebRequestDelegate.mc and paste it into Safari, the file is there with the following content:
{
"userId": 6,
"id": 115,
"title": "sed et ea eum",
"completed": false
}
If I generate the WebRequest.prg in Eclipse and drop it in the app folder on my Fenix 7, everything is fine. The widget works and I get:
{
"userId": 6,
"id": 115,
"title": "sed et ea eum",
"completed": false
}
when I press one of the buttons.
I guess something must be wrong with the Eclipse / Simulator setup on the Mac. Can anybody help ?