Languages

Menu
Sites
Language
Try to open browser: Music-Player is opened instead?

Hey there,

I'm trying to implement some oAuth Flow for spotify on my Samsung Galaxy Watch (so wearable web application).

I have a URL like:

https://accounts.spotify.com/de/login?continue=https:%2F%2Faccounts.spotify.com%2Fauthorize%3Fclient_id%{CLIENTID}%26response_type%3Dcode%26redirect_uri%3D{REDIRECTURI}%26scope%3Duser-read-private%2520user-read-email%2520user-read-playback-state%2520user-modify-playback-state%26state%3D{STATE}

In my config.xml the following privileges.
Guess "appmanager.launch" is for native apps only, I added it none the less.

<tizen:privilege name="http://tizen.org/privilege/internet"/>
<tizen:privilege name="http://tizen.org/privilege/appmanager.launch"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
<access origin="*" subdomains="true"></access>

And this is my function:

authorize () {
    const _this = this
    const authorizeUrl = this.spotify.createAuthorizeURL(SCOPES, STATE)
    const appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view', authorizeUrl, '*/*')

    console.log(authorizeUrl)

    tizen.application.launchAppControl(
        appControl,
        null,
        function () {
            console.log("launch application control succeed")
        },
        function (error) { console.log(error) },
        null
    )
}

Something is indeed opened, but I see a big play button and a button to change volume, although there is no media to play. I dont know what kind of view this is, but it's not the normal music app.

I tried to change the mimetype from "*/*" to "text/html" but then I got the error "No matched application found".

I would appreciate any help!
Thanks in advance.

Best regards
Nick