ios-sdk
ios-sdk copied to clipboard
Calls to application(app, open: url, options: options) return false for error cases
I'm seeing a lot of logs from our app about failing to handle requests to open Spotify URLs. The URLs in question are mostly along the lines of:
- host://callback?error=user_canceled&error_description=user%20aborted&spotify_version=8.7.68.568
- host://callback?error=unknown_error&error_description=error%20domain%3dcom.spotify.connectivity....
- host://callback/?error=access_denied&spotify_version=8.7.68.568
And when passing them to sessionManager.application(application, open: url, options: options)
we're getting a return value of false
which is misleading as these are URLs Spotify should handle. As a result we are then subsequently feeding the same URLs to all our other URL handling code, and eventually returning false
to the OS which seems incorrect.
Can someone verify if this is intended behavior, and if so why? And if it is not intended, is there a fix?