Peter-Schorn / SpotifyAPIExampleApp

An Example App that demonstrates the usage of SpotifyAPI.
23 stars 8 forks source link

Example-App Crash when (re-) launched #3

Closed MaxWernersen99 closed 3 years ago

MaxWernersen99 commented 3 years ago

The example-iOS-App crashes when started instantly or isn't even started after being used ones (flawlessly).

So installing via Xcode and first use work, but after quitting ones and trying to reopen after that, only the opening-animation from APP-icon to full screen is shown for half a second and then closed again (no matter how often one tries).

Is it known what might be the issue here?

Peter-Schorn commented 3 years ago

Are you saying that the app only works when it's launched from Xcode? In that case, the reason is because the app requires the CLIENT_ID and CLIENT_SECRET environment variables, which are provided by Xcode. When these environment variables are missing in the environment, the app crashes. If you want to use the app without Xcode, then hardcode the Spotify.clientId and Spotify.clientSecret properties to your client id and client secret, respectively.

MaxWernersen99 commented 3 years ago

It works - thank you very much for the quick answer and overall for this package.