SoundCloud SDK does not receive token callback in production environments, only in Safari

I am wondering if this is a bug with the release of the new SD SDK. Recently, everything has worked perfectly.

Repeat:

  • open safari
  • go to: http://mixmatic.io
  • and look at local storage from Mixmatic for auth. It will be empty.

Do the same in Chrome and it will populate correctly.

To continue testing, after authorization on Chrome and Safari, go to the console and enter:

SC.accessToken(); 

Chrome will return the token, Safari will return null.

Could you investigate this error?

+6
source share
1 answer

Take a look at https://github.com/MoodCat/angular-soundcloud . I ended up rewriting the Soundcloud SDK for angular / router purposes. Perhaps you can capitalize on this, it looks like you are also using angular.

0
source

Source: https://habr.com/ru/post/988874/


All Articles