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

Warning: Attempt to present <RNSpotifyAuthController: 0x7ff563a58e00> on <RCTModalHostViewController: 0x7ff55dd45cf0> whose view is not in the window hierarchy! #145

Open
sslash opened this issue Oct 15, 2019 · 6 comments

Comments

@sslash
Copy link

sslash commented Oct 15, 2019

Platform: ios
React-native version:: 0.61.2
rn-spotify-sdk: 1.2.11

This error suddenly started happening after I placed the Spotify authentication screen in a different place in my app:

Warning: Attempt to present <RNSpotifyAuthController: 0x7fc60a4b5200> on <RCTModalHostViewController: 0x7fc609040960> whose view is not in the window hierarchy!

The error happens after a call to Spotify.initialize followed by Spotify.login

Any idea what could trigger this?

@lufinkey
Copy link
Owner

To be honest no idea. I present the auth controller on whatever the top visible view controller is in the app

@sslash
Copy link
Author

sslash commented Oct 15, 2019

To be honest no idea. I present the auth controller on whatever the top visible view controller is in the app

Hah yeah really confusing. I am showing (and hiding) a modal just before trying to show the Spotify login modal, so it might be that it hasn't closed itself properly before I start the Spotify flow. I will do some more investigation!

@lufinkey
Copy link
Owner

lufinkey commented Dec 8, 2020

@sslash did you ever find anything on this?

@sslash
Copy link
Author

sslash commented Dec 8, 2020

Not really. I've just settled with the fact that we have to make sure that any other modal must be completely removed before we show the Spotify authentication modal

@lufinkey
Copy link
Owner

lufinkey commented Dec 8, 2020

Any chance you could post a view controller stack for when it fails?

@sslash
Copy link
Author

sslash commented Dec 9, 2020

I'll try, yeah!

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