- Run your
serverURLagainst SSLLabs SSL Server Test (Powered by Qualys SSL Labs) to test/check that it can support mobiles calling it, it might throw up a bad cipher configuration - Change
$('#log').append(err);to$('#log').append(err.message);or$('#log').append(JSON.stringify(err));to attempt to log more inforrmation. just loggingerrmight not return anything useful to work with. Or return/append all three - Load up some test code in a browser on your phone instead, outside the TwitchApp and use the relevant debugging tools for that mobile to invetigate the issue further.
I’m assuming $ is jQuery?