Compatible with iOS 9
this tweak fixes a bug that occurs on ios 9 on spotify that the app would crash due to EXC_BAD_ACCESS signal received if you have offline mode turned on in spotify app preferences. it did not crash immediately, but after about a minute or two of listening to a song with offline mode turned on in the app settings. the bug was caused, in short, by a NSURLSessionTask returning with an error when you have offline mode turned on and causing the app to crash because of this.
screenshot 1 of crash report.
screenshot 2 of crash report showing the stack trace from thread 21 where the error originated from.
this tweak fixes that bug by intercepting all outgoing network requests while offline mode is turned on, and bl ocking them. simply turn on offline mode in spotify app preferences and instead of crashing the app will work and function as normally.
it is worth noting that this crashing behavior happens also on ios 8 but i was not able to make a tweak to fix this on ios 8, this fix is only for ios 9. if you want to use spotify on ios 8, just do not enable offline mode and then the app will work fine.