Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Cache system not on main thread #10

Open
digitaldavenyc opened this issue Oct 10, 2016 · 1 comment
Open

Authentication: Cache system not on main thread #10

digitaldavenyc opened this issue Oct 10, 2016 · 1 comment

Comments

@digitaldavenyc
Copy link

digitaldavenyc commented Oct 10, 2016

screen shot 2016-10-10 at 11 52 11 am

This is error very sporadic, it happens about 20% of the time but it is pretty serious since it causes the app to crash. I have tried wrapping SpotifyAuth.login in a try catch but this error seems to be lower level on the Objective-C side.

@Steve62
Copy link

Steve62 commented Apr 20, 2017

Doing the following fixed the issue for me:

Find [delegate.window.rootViewController presentViewController: controller animated:YES completion:nil]; in SpotifyAuth.m and replace it with:

dispatch_async(dispatch_get_main_queue(), ^{ //Present the webView over the rootView [delegate.window.rootViewController presentViewController: controller animated:YES completion:nil]; });

@digitaldavenyc digitaldavenyc mentioned this issue Sep 14, 2017
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants