Hi there,
I just started experimenting with connect IQ and an audio provider. Unfortunately I can't get the webrequest to fetch me any audio file. It always fails with -1002 (UNSUPPORTED_CONTENT_TYPE_IN_RESPONSE) - in the simulator this is.
I am fumbling with this problem for days now, so I tried to start all over:
- Create a new audio provider Project - API-Level 3.2, Product: Fenix7
- Just add a simple request-function to the SyncDelegate.mc
- Call this function from onStartSync()
- Run the app in simulator, switch to "Sync" -> responseCode -> -1002
- The HTTP-Traffic monitor shows absolutely nothing. I also tried to see something in wireshark, but there is nothing either. It seems the request isn't firing at all.
- When changing the response-type to "json", I can see http-traffic in the monitor and wireshark, but of course I get the "invalid boby"-error
The request-function has only a hard-code URL to an mp3-File stored on my personal nginx-server. I tried with and without "use https Requirements", no difference.
Here is my request-function - could someone please hint me in right direction: