SC.connect is opening Android native app, and make the authentication impossible on Android

Open
#64 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, javascript

Research direction

Start with the SC.connect implementation and the sample flow linked from the API authentication guide. Reproduce the redirect on Android 6 with the SoundCloud app installed, then trace how the /connect URL is generated and handled. Done means the client-side authentication flow can open successfully without being captured by the native app.

Written by the indexing model from the issue text.

Description

On Android, the native app is registered to https://soundcloud.com and https://m.soundcloud.com.
When the SC.connect call try to open the https://soundcloud.com/connect?... page, it's automatically redirected to the native SC app, that failed with a message indicating : "A problem occurs with this URL".

If you try the sample flow from "Try out the Client-side auth flow" button of the API doc https://developers.soundcloud.com/docs/api/guide#authentication, you will see the behavior.
You need an Android phone with Android version 6, with SoundCloud app installed (logged in or not).

Would it be possible to either add path to the Android intent to avoid capturing the /connect? path, or to give use a new URL like connect.soundcloud.com that will not be managed by the mobile app?

Thanks

Dominant language
JavaScript
Stars
388
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from soundcloud/soundcloud-javascript

All issues in soundcloud/soundcloud-javascript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.