Is it possible to use FlurryAPI within a static library?
I'm working on a static library 开发者_StackOverflow中文版to distribute to iOS developers, and I'd like to incorporate an analytics library like Flurry to know more about how users are interacting with it. My concern is that if app developers are already using Flurry in their apps and the library initializes a new session, it will clobber their existing session.
My first idea is to subclass FlurryAPI
, but it's hard to say whether or not it will do any good without knowing the implementation details.
Does anyone have any experience with this or ideas? Thanks in advance.
Received a response from Flurry support saying that it's against their TOS to include Flurry in a static library for use in other apps. Looking into modifying and using the Localytics SDK instead.
You activate Flurry in the AppDelegate (Most preferred way), check there for an existing session?
Or create a method that you need implement in the AppDelegate wich checks and or create a new session.
精彩评论