uwp-experiences icon indicating copy to clipboard operation
uwp-experiences copied to clipboard

Freezing on "Connecting..." for tvOS target

Open loretoparisi opened this issue 8 years ago • 6 comments

I was able to build on Xamarin Studio/macOS for target tvOS simulator. The build is ok. When the tvOS app starts it hangs while "connecting..." I have a Soundcloud app configured (key and secret). My doubt is about the oAuth callback, that at this time does anything (just a localhost/callback uri) else than

<!DOCTYPE html>
<!-- saved from url=(0047)https://developers.soundcloud.com/callback.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>Connect with SoundCloud</title>
  </head>
  <body onload="window.setTimeout(window.opener.SC.connectCallback, 1);">
    <p>
      This popup should automatically close in a few seconds
    </p>
  

</body></html>

The file is index.html server at http://localhost:8888/callback

I have specified Twitter consumer key, secret and callback as well.

loretoparisi avatar Jan 25 '17 11:01 loretoparisi

Thanks for reporting this, I will try to reproduce and report back

nmetulev avatar Jan 30 '17 18:01 nmetulev

Hey @loretoparisi , are you able to connect on the UWP side? Could you share a small repro that I could use to debug? I haven't been able to reproduce.

For the callback uri for SoundCloud I've been using https://developers.soundcloud.com/callback.html

nmetulev avatar Feb 01 '17 19:02 nmetulev

@nmetulev did not try the UWP side. My soundcloud callback configuration points to http://localhost:8888/callback and the callback file is the example one on the page that you have just linked. I have also added a configured Twitter app account just to be sure to have all things set up. How can I help you to debug?

loretoparisi avatar Feb 08 '17 11:02 loretoparisi

Can you try pointing directly to https://developers.soundcloud.com/callback.html instead of a local page for your callback?

nmetulev avatar Feb 08 '17 18:02 nmetulev

So what I can see from the logs it's a sequence of bounces between Connecting and Disconnected states

Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting
Disconnected
Connecting

I have put public const string SC_REDIRECT_URL = "https://developers.soundcloud.com/callback.html";

loretoparisi avatar Feb 09 '17 14:02 loretoparisi

Ah, I see, what is probably happening is the app can't connect to the app service and never enters here. I'd check to make sure your app service is working properly. You can also try to use the app service I have deployed here: http://music-app.azurewebsites.net/

nmetulev avatar Feb 09 '17 18:02 nmetulev