BillyCurtis/OpenSpotifySafariExtension

I get this error message

Closed this issue · 4 comments

I get an error message when it open a Spotify link open the link but if the app is already open it works fine
IMG_0680

This is probably an issue with the EeveeSpotify tweak since all links are handled by it. 

I'm guessing since the app was closed when it was opened from a link Spotify handled before EeveeSpotify did, and since Spotify doesn't recognise /eevee/ in the link, it's giving you that error. 

Maybe @whoeevee can fix this? 

talk to them and i don't think they can't be fix

The issue is, when the app is closed, the method openURLContexts that EeveeSpotify hooks for opening links is not called. Instead, there is willConnectToSession:options: and Spotify is not recognizing /eevee/ in the link provided by OpenSpotifySafariExtension. I initially didn't implement hook of this method because Orion was giving me errors, and there were some problems with WindowHelper.

But now, I've fixed that by hooking the URL method of UIOpenURLContext that is called when you open the link both when the app is launched or not. It checks the link, and if it's from OpenSpotifySafariExtension, replaces with the original Spotify link. Works perfectly, see: whoeevee/EeveeSpotify@2922687

oh I see this is interesting I'm glad you found an update for this can't wait for the update