- Home /
Question by
MangelLegnam · Jul 26, 2019 at 04:29 PM ·
iosmacopenurl
Application.OpenURL sometimes not working on iOS?
Seems that this code isn't working, i can't see why, in PC and Android all works like a charm
string scopes = "";
scopes += "user-read-private";
//Listening History
scopes += " user-read-recently-played";
//Spotify Connect
scopes += " user-read-playback-state";
scopes += " user-read-currently-playing";
scopes += " user-modify-playback-state";
//Playback
scopes += " app-remote-control";
//Users
scopes += " user-read-email";
string url = "https://accounts.spotify.com/authorize?client_id=" + ClientId + "&response_type=code&redirect_uri=" + Proxy + "&scope=" + scopes + "&state=34fFs29kd09";
Application.OpenURL(url);
where Proxy is "http://127.0.0.1:4444/" and ClientID something like "9sdug9..."
Would appreciate some help :_D
Comment
it only happens whith that url? it just simply not open but it reaches the line 100%? did you try using other browser apart from ios default one?
Answer by MangelLegnam · Jul 26, 2019 at 05:33 PM
I finally figgured it out! using WWW.EscapeURL(scopes) solved everything ^^