nst / STTwitter

A stable, mature and comprehensive Objective-C library for Twitter REST API 1.1
BSD 3-Clause "New" or "Revised" License
999 stars 161 forks source link

Allow setting sharedContainerIdentifier #261

Closed inb4ohnoes closed 8 years ago

inb4ohnoes commented 8 years ago

For extensions, especially notification extensions, NSURLSession requires setting a sharedContainerIdentifier otherwise requests won't work. STHTTPRequest uses NSURLSession, but doesn't allow setting sharedContainerIdentifier. Would be great to implement this somewhere to make STTwitterAPI even more flexible! Referencing https://github.com/nst/STTwitter/issues/260.

inb4ohnoes commented 8 years ago

Any chance we could get some sort of setter support for this directly in STTwitterAPI? I think it would make everything much cleaner!

nst commented 8 years ago

yes, it is now available

https://github.com/nst/STTwitter/blob/master/STTwitter/STTwitterAPI.h#L162