Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Freezing on "Connecting..." for tvOS target #30

Open
loretoparisi opened this issue Jan 25, 2017 · 6 comments
Open

Freezing on "Connecting..." for tvOS target #30

loretoparisi opened this issue Jan 25, 2017 · 6 comments

Comments

@loretoparisi
Copy link

loretoparisi commented Jan 25, 2017

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.

@nmetulev
Copy link
Member

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

@nmetulev
Copy link
Member

nmetulev commented Feb 1, 2017

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

@loretoparisi
Copy link
Author

@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?

@nmetulev
Copy link
Member

nmetulev commented Feb 8, 2017

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

@loretoparisi
Copy link
Author

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";

@nmetulev
Copy link
Member

nmetulev commented Feb 9, 2017

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/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants